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

Cannot run anything if extension is .mjs or .wasm #2626

Closed
koresar opened this issue Sep 27, 2018 · 6 comments
Closed

Cannot run anything if extension is .mjs or .wasm #2626

koresar opened this issue Sep 27, 2018 · 6 comments

Comments

@koresar
Copy link

koresar commented Sep 27, 2018

Version
3.0.4

Reproduction link
jaydenseric/apollo-upload-client#117 (comment)

Node and OS info
node 8.11.4 / npm 6.4.1 / OS X

Steps to reproduce
Have a simple vue cli 3 project.

npm i -S extract-files And use this module anywhere in your application or config.

npm run serve

What is expected?
It starts.

What is actually happening?

error in ./node_modules/extract-files/lib/index.mjs

Can't reexport the namespace object from non EcmaScript module (only default export is available)

VUE CLI resolvers supports only: ['.js', '.jsx', '.vue', '.json'] https://github.com/vuejs/vue-cli/blob/v3.0.4/packages/%40vue/cli-service/lib/config/base.js#L41

Whereas it should be: ['.wasm', '.mjs', '.js', '.jsx', '.vue', '.json'] https://github.com/zeit/next.js/blob/7.0.1-canary.0/build/webpack.js#L155

@vue-bot
Copy link

vue-bot commented Sep 27, 2018

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

@vue-bot vue-bot closed this as completed Sep 27, 2018
@koresar
Copy link
Author

koresar commented Sep 27, 2018

You got to be kidding me!

@haoqunjiang
Copy link
Member

It's customizable anyway. Add these lines to vue.config.js:

// vue.config.js
module.exports = {
  chainWebpack: config => config.resolve.extensions.prepend('.mjs').prepend('.wasm')
}

@ScreamZ
Copy link
Contributor

ScreamZ commented Oct 26, 2018

@koresar Did you used the issue builder ? https://new-issue.vuejs.org/?repo=vuejs/vue-cli

I'll use @sodatea patch awaiting for this thanks

@koresar
Copy link
Author

koresar commented Oct 26, 2018

I did! Then I edited to fix a typo - and it closed the issue.

I find this system quite annoying and unproductive.

Can it be only one ticketing system instead of the two?

@dagadbm
Copy link

dagadbm commented Apr 27, 2021

shouldn't this just be default behavior by default? or is it because im using an older version (3.1.1)

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

5 participants