question-mark
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.

Package.json incorrectly formatted

See original GitHub issue

I’m getting a failure on a Travis build from this update. Looks like you just added a dual-module package. With type: module in the package.json, I think main should point to the ESM build or needs the .cjs extension.

Build is here: https://travis-ci.org/github/mAAdhaTTah/brookjs/jobs/679426871

I haven’t written a dual module package, so I could be wrong on the fix, but the current implementation is def broken, unfortunately.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
nprailcommented, Apr 25, 2020

This issue breaks @angular/cli as well.

Solved it by pinning the version in the package-lock.json file like so:

"is-promise": {
  "version": "2.1.0",
  "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz",
  "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=",
  "dev": true
}
1reaction
evicentcommented, Apr 25, 2020

#12 solution here!

npm remove is-promise npm install is-promise@2.1.0

Try and let your comments

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can someone please tell me what is wrong with my package ...
json to package.json.old and re-accomplished npm init and it worked after adding the "start": "electron ." .
Read more >
How to Parse Improperly Formatted JSON Objects in Databricks
A JSON file is invalid if it contains more than one JSON object when using this function. The most straightforward resolution to this...
Read more >
JSON Formatter & Validator
The JSON Formatter & Validator beautifies and debugs JSON data with advanced formatting and validation algorithms.
Read more >
JSON editing in Visual Studio Code
Formatting. You can format your JSON document using Ctrl+Shift+I or Format Document from the context menu.
Read more >
Format response data in ASP.NET Core Web API
Text.Json . To use the Newtonsoft.Json -based formatters, install the Microsoft.AspNetCore.Mvc.NewtonsoftJson NuGet package and configure it ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found