Skip to content

Something went wrong when updating #844

@Cyp

Description

@Cyp

After updating

$ npm update
+ babel-preset-env@1.7.0
+ babel-preset-minify@0.4.2

I get

~/project/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
        throw e;
        ^

Error: Cannot find module '@babel/types' (While processing preset: "~/project/node_modules/babel-preset-minify/lib/index.js")
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (~/project/node_modules/babel-helper-evaluate-path/lib/index.js:11:11)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

, and downgrading again doesn't help.

Not sure if it's my configuration that went weird somehow, but I think it should be using 'babel-types' instead of '@babel/types'. Reporting quickly in case it affects everyone updating and not just me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions