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
I wrote async/await in the project created by vue-cli v4.5.17
Configuration file name
babel.config.json
Configuration
No response
Current and expected behavior
Console error: Uncaught TypeError: Cannot set properties of undefined (setting 'default'),Then I click on the error to view the source code,I saw the code below:
💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
same as https://ask.dcloud.net.cn/question/145538.
I wrote
async/awaitin the project created by vue-cli v4.5.17Configuration file name
babel.config.json
Configuration
No response
Current and expected behavior
Console error: Uncaught TypeError: Cannot set properties of undefined (setting 'default'),Then I click on the error to view the source code,I saw the code below:
QQ20220601-163039-HD.mp4
Environment
System:
OS: macOS 12.4
Binaries:
Node: 10.24.1 - ~/.nvm/versions/node/v10.24.1/bin/node
Yarn: 1.22.18 - ~/.nvm/versions/node/v10.24.1/bin/yarn
npm: 6.14.12 - ~/.nvm/versions/node/v10.24.1/bin/npm
npmPackages:
@babel/plugin-transform-modules-commonjs: ^7.7.5 => 7.18.2
babel-eslint: ^10.1.0 => 10.1.0
babel-plugin-import: 1.13.3 => 1.13.3
eslint: ^6.7.2 => 6.8.0
Possible solution
When I moved the code that reported the error below, it worked fine,like this:
QQ20220601-163301-HD.mp4
Additional context
it works normally when I use @babel/runtime v7.17.9