Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

intentionally malformed package.json fixture in tests breaks flowtype when checking node_modules

See original GitHub issue

Steps to regenerate:-

  • npm install resolve
  • run flow command

flow output:-

Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ node_modules/resolve/test/resolver/malformed_package_json/package.json:2:1 Unexpected end of input, expected the token }

 1│ {

@ljharb, Kindly respond. Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

chrisbobbecommented, Jan 25, 2022

It seems like a bug should be filed on flow so that it doesn’t fail when it encounters invalid JSON, especially inside node_modules. Please link to it here when that’s filed.

paritosh-yadavcommented, Jan 5, 2022

Hi @ljharb ,

I have ignored the lib in flow config. Previously ignoring lib isn’t working, but now it is.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flow type checker errors in node_modules/* - Stack Overflow
I'd advise against doing this. If an NPM package has first class Flow support, this will cause flow to ignore its typings. –...
Read more >
eslint | Yarn - Package Manager
An AST-based pattern checker for JavaScript. ast, lint, javascript, ecmascript. readme. npm version Downloads Build Status FOSSA Status
Read more >
How to Remove Flow Issues in Node Modules? | by BlueEast
Open .flowconfig file and write the below stated code. [ignore].*/node_modules/*[include][libs] ...
Read more >
But I?m getting the following Pact test errors: ``` console.error node_modules/@pact-foundation/pact/pact.js:110 Pact verification failed! console.error ...
Read more >
Apache Traffic Control Documentation
vice are {test} and a client makes a request for /?test=something they will ... as a whole or to Traffic Ops itself, whereas...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found