-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
2.0.0-3 broken in Webpack v4 without babel-loader & export-namespace-from support #228
Comments
Any chance of getting more details of the environment & config where you encountered this? |
VueJs, webpack, launch build: if change dependency from |
You may need to share your entire package.json and Webpack config, as that doesn't really tell me anything about what your |
Closing due to lack of information & repeatability. Please do fill out the template when filing bug reports. |
Hi @eemeli, got the same one, my deps: {
"name": "ui",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --port 3000",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@websanova/vue-auth": "^4.1.0",
"axios": "^0.21.1",
"core-js": "^3.6.5",
"material-design-icons-iconfont": "^6.1.0",
"stylus": "^0.54.8",
"stylus-loader": "3",
"vue": "^2.6.11",
"vue-axios": "^3.2.2",
"vue-codemirror": "^4.0.6",
"vue-ls": "^3.2.2",
"vue-router": "^3.4.9",
"vuetify": "^2.2.11",
"vuex": "^3.6.0",
"yaml": "^2.0.0-3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"vue-cli-plugin-vuetify": "~2.0.9",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.3.0"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
} and the build error:
Not sure what else would be helpful. Didn't do any config apart from importing the package |
2.0.0-3 update is broken. please take a look what have been changed this time. i fixed my problem (i have great frontend man in my team), but i'm pretty sure, a lot of people cant handle this. |
Thank you @rusenask, with that info I was able to recreate the issue & then trace it down to more specifics. The problem was surfaced in the 2.0.0-3 prerelease by the change made to solve issue #203, where the main browser endpoint was modified to use As a workaround, adding this to your Vue config should probably apply a minimal fix for the issue. // vue.config.js
module.exports = {
configureWebpack(config) {
config.module.rules.push({
test: /node_modules\/yaml\/browser\/index\.js$/,
use: {
loader: 'babel-loader',
options: {
plugins: ['@babel/plugin-proposal-export-namespace-from']
}
}
})
}
} Those should are already transitive dependencies of your projects. Provided that this workaround works for you, I'm going to return to this later to see if it's worth fixing more properly, or if I should do something else about the browser exports. To be clear, this is a prerelease, so I consider it exactly the sort of place where to beta-test features such as this change, for which I can't be certain that all corner cases get covered by my own testing. |
Thanks @eemeli! It is great to be usefull tester, just dont close topics 👯 |
@dikkini, you opted not to use the bug report template this repo provides, and did not provide sufficient information for recreating the issue. That's why it was closed. I did mention this earlier:
|
For the benefit of future frustrated webpack v4 --> v5 migrants who stumble on this issue, I ended up with the following
As it turns out, this new version of |
Oops, misclick. Apologies. |
The text was updated successfully, but these errors were encountered: