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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TypeError: _core.types.isStaticBlock is not a function #14230

Closed
1 task
AarRidho opened this issue Feb 3, 2022 · 5 comments 路 Fixed by #14231
Closed
1 task

[Bug]: TypeError: _core.types.isStaticBlock is not a function #14230

AarRidho opened this issue Feb 3, 2022 · 5 comments 路 Fixed by #14231
Labels
i: needs triage i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@AarRidho
Copy link

AarRidho commented Feb 3, 2022

馃捇

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

import React from 'react';
import ReactDOM from 'react-dom';

export class Portal extends React.Component<{ selector: string }> {
    private element: HTMLElement;

    componentDidMount() {
        this.element = document.querySelector(this.props.selector);
        this.forceUpdate();
    }

    render() {
        if (this.element === undefined) {
            return null;
        }

        return ReactDOM.createPortal(this.props.children, this.element);
    }
}

Configuration file name

No response

Configuration

No response

Current and expected behavior

Current: Today's release breaks Next.js next build pipeline

Expected: Today's release should not affect pipeline build just like yesterday

Environment

  • Babel: v7.7.7 (core)
  • Webpack: v4.41.5
  • Node: v12.18.0
  • Next.js: v9.5.5

Possible solution

No response

Additional context

Pipeline message:
image

@babel-bot
Copy link
Collaborator

Hey @AarRidho! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@nicolo-ribaudo
Copy link
Member

As a workaround, update @babel/types.

@AarRidho
Copy link
Author

AarRidho commented Feb 3, 2022

Updating @babel/types fix the issue for me

@nicolo-ribaudo
Copy link
Member

nicolo-ribaudo commented Feb 3, 2022

Fixed in @babel/helper-create-class-features-plugin@7.17.1; I'm releasing it now.

@imyelo
Copy link

imyelo commented Feb 10, 2022

Fixed in @babel/helper-create-class-features-plugin@7.17.1; I'm releasing it now.

still break in @babel/plugin-proposal-class-static-block

https://github.com/babel/babel/blob/0058b7f/packages/babel-plugin-proposal-class-static-block/src/index.ts#L56

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label May 13, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: needs triage i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
4 participants