Skip to content

Getting warnings for export 'default' (imported as 'mod') was not found #625

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

Closed
amir20 opened this issue Oct 16, 2020 · 3 comments
Closed

Comments

@amir20
Copy link

amir20 commented Oct 16, 2020

  • Operating System: Mac Os 10.15.x
  • Node Version: 14.13.1
  • NPM Version: yarn 1.22.5
  • webpack Version: weback 5.1.2
  • mini-css-extract-plugin Version: 1.0.0

I am seeing multiple warnings that look like

WARNING in ./assets/App.vue?vue&type=style&index=0&id=5bcdaf03&scoped=true&lang=scss& 1:472-475
export 'default' (imported as 'mod') was not found in '-!../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-1[0].rules[0].use[0]!../node_modules/css-loader/dist/cjs.js!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??clonedRuleSet-1[0].rules[0].use[2]!../node_modules/sass-loader/dist/cjs.js!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&id=5bcdaf03&scoped=true&lang=scss&' (possible exports: )
 @ ./assets/App.vue 4:0-88
 @ ./assets/main.js 8:0-28 59:19-22

Code

https://gist.github.com/amir20/753be944314fbe5a9f8d58bf0c326dc1

How Do We Reproduce?

https://github.com/amir20/dozzle/tree/webpack5

yarn && yarn build

@alexander-akait
Copy link
Member

alexander-akait commented Oct 17, 2020

Please open an issue in vue plugin, you should not use default import if you don't have locals

@amir20
Copy link
Author

amir20 commented Oct 17, 2020

I can do that. But the stacktrace suggests the problem is with this plugin. Did I miss something?

@alexander-akait
Copy link
Member

WARNING in ./assets/App.vue?vue&type=style&index=0&id=5bcdaf03&scoped=true&lang=scss& 1:472-475

Here ?vue, it is syntax for vue loader

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