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.

Running new install from Quickstart guide compiles with errors

See original GitHub issue

I am running the Quickstart instructions for the first time. I have added the required packages via Yarn. I am getting the following errors when running yarn start:

WARNING in ./node_modules/nth-check/lib/esm/compile.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from ‘/Users/charlieswing/Documents/source/quiet-collection-cms/node_modules/nth-check/lib/esm/https:/raw.githubusercontent.com/fb55/nth-check/639fd2a4000b69f82350aad8c34cb43f77e483ba/src/compile.ts’ file: Error: ENOENT: no such file or directory, open ‘/Users/charlieswing/Documents/source/quiet-collection-cms/node_modules/nth-check/lib/esm/https:/raw.githubusercontent.com/fb55/nth-check/639fd2a4000b69f82350aad8c34cb43f77e483ba/src/compile.ts’

WARNING in ./node_modules/nth-check/lib/esm/index.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from ‘/Users/charlieswing/Documents/source/quiet-collection-cms/node_modules/nth-check/lib/esm/https:/raw.githubusercontent.com/fb55/nth-check/639fd2a4000b69f82350aad8c34cb43f77e483ba/src/index.ts’ file: Error: ENOENT: no such file or directory, open ‘/Users/charlieswing/Documents/source/quiet-collection-cms/node_modules/nth-check/lib/esm/https:/raw.githubusercontent.com/fb55/nth-check/639fd2a4000b69f82350aad8c34cb43f77e483ba/src/index.ts’

WARNING in ./node_modules/nth-check/lib/esm/parse.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from ‘/Users/charlieswing/Documents/source/quiet-collection-cms/node_modules/nth-check/lib/esm/https:/raw.githubusercontent.com/fb55/nth-check/639fd2a4000b69f82350aad8c34cb43f77e483ba/src/parse.ts’ file: Error: ENOENT: no such file or directory, open ‘/Users/charlieswing/Documents/source/quiet-collection-cms/node_modules/nth-check/lib/esm/https:/raw.githubusercontent.com/fb55/nth-check/639fd2a4000b69f82350aad8c34cb43f77e483ba/src/parse.ts’

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fgatti675commented, Jul 17, 2022

Some dependency must have introduced a bug, but I am not able to find it, nor it seems to happen to anyone else. It seems that setting these dependencies works:

    "@camberi/firecms": "1.0.2",
    "@emotion/react": "11.9.3",
    "@emotion/styled": "11.9.3",
    "@mui/icons-material": "5.5.1",
    "@mui/lab": "5.0.0-alpha.45",
    "@mui/material": "5.5.3",
    "@mui/styles": "5.5.3",
    "react-router": "^6",
    "react-router-dom": "^6",
    "firebase": "^9",

The error is still there but the app is working. The error is related to source map generation, which can be disabled by:


  "scripts": {
    "start": "GENERATE_SOURCEMAP=false react-scripts start",
    "build": "GENERATE_SOURCEMAP=false  react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
0reactions
richardszeghcommented, Sep 7, 2022

This is an issue with CRA, see this discussion and this pull request.

Here’s a temporary solution using Craco.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to compile and run the example in Quickstart guide
@jebrosen I have GCC and G++ installed, and they seem to be working fine on my system. Are you sure there is nothing...
Read more >
Quickstart Guide — GCHP 14.0.0 documentation
This quickstart guide assumes your environment satisfies GCHP's requirements. ... More detailed instructions on downloading, compiling, and running GCHP can ...
Read more >
Quick start guide | CLion Documentation - JetBrains
Yes, you can install and run CLion on Windows, macOS, and Linux. See Install CLion for OS-specific instructions.
Read more >
Get Up and Running With OCaml
These instructions work on Windows, Unix systems like Linux, and macOS. ... Of course, this includes installing the compiler itself, but it also...
Read more >
The Absolute Beginner's Guide to Installing and Using Meson
Download and run it to install all the necessary bits. You can verify that your installation is working by running the Visual Studio...
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