Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue 3.3. Provide fs option for @vue/compiler-sfc 3.3.0+ compileScript function #2041

Open
tragid opened this issue May 12, 2023 · 1 comment

Comments

@tragid
Copy link

tragid commented May 12, 2023

Loading vue 3.3.0 with webpack5, vue-loader (v17.1.1) and swc-loader throws exception:

ERROR in ./src/modules/sportline/submodules/event-details/components/info-headline/OutrightInfoMobile.vue?vue&type=template&id=d157489a&scoped=true&ts=true (../leon-core/webpack-bundle-translations-plugin/src/BundleTranslationsLoader.ts!../leon-core/webpack-loader-replace-vue-template/index.js??ruleSet[1].rules[16].use[1]!../.yarn/__virtual__/swc-loader-virtual-030f769ae4/0/cache/swc-loader-npm-0.2.3-349484c9ea-010d84d399.zip/node_modules/swc-loader/src/index.js??clonedRuleSet-12.use[1]!../.yarn/__virtual__/swc-loader-virtual-030f769ae4/0/cache/swc-loader-npm-0.2.3-349484c9ea-010d84d399.zip/node_modules/swc-loader/src/index.js??clonedRuleSet-12.use[2]!../.yarn/__virtual__/vue-loader-virtual-e77cc748aa/0/cache/vue-loader-npm-17.1.1-9fe56345a4-02b28078a6.zip/node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!../.yarn/__virtual__/vue-loader-virtual-e77cc748aa/0/cache/vue-loader-npm-17.1.1-9fe56345a4-02b28078a6.zip/node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/modules/sportline/submodules/event-details/components/info-headline/OutrightInfoMobile.vue?vue&type=template&id=d157489a&scoped=true&ts=true)
Module Error (from ../.yarn/__virtual__/vue-loader-virtual-e77cc748aa/0/cache/vue-loader-npm-17.1.1-9fe56345a4-02b28078a6.zip/node_modules/vue-loader/dist/templateLoader.js):
[@vue/compiler-sfc] No fs option provided to `compileScript` in non-Node environment. File system access is required for resolving imported types.
@Threebow
Copy link

Having same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants