You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vue create sample-project
cd sample-project
npm run build
What is expected?
Build complete
What is actually happening?
ERROR Failed to compile with 1 errors 12:48:11 PM
error in ./src/main.js
Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 0)
[BABEL] /Users/zybjaredvaldez/Documents/code/sample-project/src/main.js: Package exports for '/Users/zybjaredvaldez/Documents/code/sample-project/node_modules/@babel/helper-compilation-targets' do not define a '.' subpath (While processing: "/Users/zybjaredvaldez/Documents/code/sample-project/node_modules/@vue/cli-plugin-babel/preset.js")
at PoolWorker.fromErrorObj (/Users/zybjaredvaldez/Documents/code/sample-project/node_modules/thread-loader/dist/WorkerPool.js:262:12)
at /Users/zybjaredvaldez/Documents/code/sample-project/node_modules/thread-loader/dist/WorkerPool.js:204:29
at applyExports (internal/modules/cjs/loader.js:485:15)
at resolveExports (internal/modules/cjs/loader.js:508:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:577:20)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:879:27)
at Function.Module._load (internal/modules/cjs/loader.js:785:27)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/Users/zybjaredvaldez/Documents/code/sample-project/node_modules/@babel/preset-env/lib/debug.js:8:33)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
@ multi ./src/main.js
After investigating, @babel/preset-env released a new version 5 hours ago (at the time of this writing) and always break my build, even with the default project template. Since I had a working project prior, I checked the dependencies. @babel/preset-env@7.8.0 is the problem. I always have a working build on @babel/preset-env@7.7.7. So what I did was added @babel/preset-env@7.7.7 into the devDependencies of my package.json.
The text was updated successfully, but these errors were encountered:
Version
4.1.2
Environment info
Steps to reproduce
vue create sample-project
cd sample-project
npm run build
What is expected?
Build complete
What is actually happening?
After investigating, @babel/preset-env released a new version 5 hours ago (at the time of this writing) and always break my build, even with the default project template. Since I had a working project prior, I checked the dependencies.
@babel/preset-env@7.8.0
is the problem. I always have a working build on@babel/preset-env@7.7.7
. So what I did was added@babel/preset-env@7.7.7
into thedevDependencies
of mypackage.json
.The text was updated successfully, but these errors were encountered: