8000 Fixes lint issue by puneeth8994 · Pull Request #2 · codemirror/lint · GitHub
[go: up one dir, main page]

Skip to content

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
0