Skip to content

Misc. problems with babel@7 #44

Description

@akb89

When attempting to update/upgrade dev dependencies:

    "@babel/core": "^7.1.0",
    "@babel/plugin-transform-async-to-generator": "^7.1.0",
    "@babel/plugin-transform-runtime": "^7.1.0",
    "@babel/preset-env": "^7.1.0",

I get the following error when running npm run build:

Error: Cannot find module 'babel-plugin-transform-runtime' from '/Users/AKB/GitHub/myValencer'
- Did you mean "@babel/transform-runtime"? while parsing file: /Users/AKB/GitHub/myValencer/front/frontend/main.js
    at Function.module.exports [as sync] 
...

Dunno how to update the paths...
Following attempts to add a .babelrc file fails miserably:

{
  "presets": [
    ["@babel/preset-env", {
      "useBuiltIns": false,
    }],
  ],
  "plugins": [
    "@babel/plugin-transform-runtime"
  ]
}

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions