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
{{ message }}
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
swc looks promising. however, I tried to setup one legacy project with webpack using swc-loader and I have the follwing error when I try to run the project
Failedtocompile../src/main.jsModulebuildfailed(from./node_modules/babel-loader/lib/index.js):
Error: .inputSourceMapmustbeaboolean,object,orundefinedatassertInputSourceMap(/code/sample/node_modules/@babel/core/lib/config/validation/option-assertions.js:124:11)at/code/sample/node_modules/@babel/core/lib/config/validation/options.js:118:5atArray.forEach(<anonymous>)
at validateNested (/code/sample/node_modules/@babel/core/lib/config/validation/options.js:94:21)
at validate (/code/sample/node_modules/@babel/core/lib/config/validation/options.js:85:10)
at loadPrivatePartialConfig (/code/sample/node_modules/@babel/core/lib/config/partial.js:80:50)
at loadPrivatePartialConfig.next (<anonymous>)
at /code/sample/node_modules/@babel/core/lib/config/partial.js:149:25
at Generator.next (<anonymous>)
at step (/code/sample/node_modules/gensync/index.js:261:32)
at evaluateAsync (/code/sample/node_modules/gensync/index.js:291:5)
at /code/sample/node_modules/gensync/index.js:93:9
at new Promise (<anonymous>)
at async (/code/sample/node_modules/gensync/index.js:92:14)
at Object.<anonymous> (/code/sample/node_modules/babel-loader/lib/index.js:155:26)
at Generator.next (<anonymous>)
I only updated my vue.config.js file like and it starts to load quickly but fail at the end with the error above:
I found on the internet that this option in webpack seems to allow load the entire project, but it is slow to load, so I guess It falls back on babel to perform this operation instead of swc
devtool: "eval-cheap-source-map"
I tried this on two projects and tried to update babel dependencies as well. I got this error in both.
Any idea about what is missing, what is going on ?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey,
swc looks promising. however, I tried to setup one legacy project with webpack using swc-loader and I have the follwing error when I try to run the project
I only updated my vue.config.js file like and it starts to load quickly but fail at the end with the error above:
I found on the internet that this option in webpack seems to allow load the entire project, but it is slow to load, so I guess It falls back on babel to perform this operation instead of swc
devtool: "eval-cheap-source-map"
I tried this on two projects and tried to update babel dependencies as well. I got this error in both.
Any idea about what is missing, what is going on ?
The text was updated successfully, but these errors were encountered: