-
Notifications
You must be signed in to change notification settings - Fork 429
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
Can't import the named export x from non EcmaScript module (only default export is available) #621
Comments
This means your bundler resolves On webpack, you can add the following to rules -
PS: CRA, not that you use it, but for future reference, has a particularly brain-dead setup where is specifically resolves mjs and doesn't have a handler for it, see https://stackoverflow.com/questions/64002604/how-to-make-create-react-app-support-mjs-files-with-webpack (Step-through CRA here polkadot-js/common#812 (comment)) |
@jacogr do you have please any hint how to use it vue.config ? |
According to some light googling and clicking the first link, YMMV - nklayman/vue-cli-plugin-electron-builder#67 (comment) |
Find the same as well, but yield same results, what you've googled? I can dig around more, maybe I'm missing something. Following https://cli.vuejs.org/guide/webpack.html#simple-configuration
Following nklayman/vue-cli-plugin-electron-builder#67 (comment)
|
I believe, looking at the Vue docs (not an expert, but following an example here https://cli.vuejs.org/guide/html-and-static-assets.html#prefetch), you can probably do -
|
also added this and it still does not work
|
Either upper snippet either this didn't worked. Trying knocking out issue, if we don't have old dependencies, but we have @vue/cli-service-'4.2.3': '2020-02-27T14:34:06.315Z', which should include this PR vuejs/vue-cli#2819 when it was added. But may we are missing some module.exports = {
chainWebpack: config => {
config.module
.rule('javascript/auto')
.test(/\.mjs$/);
} |
Here is a another example for the glahql library - graphql/graphql-js#1272 (comment)
|
@jacogr has won the game! 🥳 |
Google is a friend :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
Hey I have problem to use @polkadot/extension-dapp
Using tutorials:
https://polkadot.js.org/docs/extension/usage
https://dotleap.com/building-and-address-converter-page-polkadot/
@jacogr
From console
The text was updated successfully, but these errors were encountered: