Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I found a bug in babel: 7.0.0-beta.42 #4733

Closed
longge-0516 opened this issue Jul 5, 2018 · 4 comments
Closed

I found a bug in babel: 7.0.0-beta.42 #4733

longge-0516 opened this issue Jul 5, 2018 · 4 comments

Comments

@longge-0516
Copy link

 Module build failed: Error: [BABEL] D:\projectCode\code\workspace\ssr\Nfes-boilerplate\pages\demo.js: You gave us a visitor for the node type PrivateName but it's not a valid type

 Updated babel version to 7.0.0-beta.51 can solve the problem.
@timneutkens
Copy link
Member

We'll upgrade Babel to latest once the 7 RC comes out.

@atainter
Copy link

I'm seeing the same issue. @timneutkens Looks like 7.0.0 was released. Do you have an upgrade planned?

https://www.npmjs.com/package/@babel/core

@timneutkens
Copy link
Member

We were the first package to upgrade when 7.0.0 came out, it'll be released with Next 7 though, as it has quite a few breaking changes. No breaking changes on the Next.js side though, if you don't have a custom .babelrc nothing will break 🙏 It's out on next@canary (beta) right now.

@Ethaan
Copy link

Ethaan commented Sep 26, 2018

@timneutkens i'm facing this issue with next 7.0, while doing this.

require('@babel/register', {
  babelrc: false,
  presets: ['env'],
  plugins: [
    'transform-class-properties',
    'babel-plugin-graphql-import',
    'transform-object-rest-spread',
  ],
});

does if you don't have a custom .babelrc nothing will break should be fixed with babelrc: false,

(i'm doing this babel/register becuase i'm running a custom server)

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants