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

Fixes lint issue #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

puneeth8994
Copy link

labeled loop causes build to break.

babel doesn't seem to understand "if statement followed by label loop" and throws the following error -

node_modules/@codemirror/lint/dist/index.js: Property body expected type of array but got null

The suggested PR fixes this by adding curly braces to the if statement.

@marijnh
Copy link
Member

marijnh commented May 24, 2021

I think you should file this as a Babel bug, since that's where the problem lies. Have you tried?

@vidhlakh
Copy link

Getting the same error in react making use codemirror/lint
node_modules/@codemirror/lint/dist/index.js: Property body expected type of array but got null
Need to make use of this library. May I know the fix?

@puneeth8994
Copy link
Author

@vidhlakh Upgrading babel fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants