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.

app fails to load after running `npm run dev` from fresh project

See original GitHub issue

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: x64
  Version: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64
Binaries:
  Node: 16.17.0
  npm: 8.15.0
  Yarn: N/A
  pnpm: N/A
Relevant packages:
  next: 12.3.0
  eslint-config-next: 12.3.0
  react: 18.2.0
  react-dom: 18.2.0

What browser are you using? (if relevant)

N/A but it’s Chrome 105.0.5195.102

How are you deploying your application? (if relevant)

No response

Describe the Bug

Getting an error immediately after bootstrapping a fresh project and trying to run it.

Expected Behavior

Application runs and starts up on the default application screen

Link to reproduction

No tools seem to replicate this

To Reproduce

using NPM

node v16.17.0 | npm v8.15.0

npx create-next-app@latest test-project --typescript or npx create-next-app@canary test-project --typescript cd test-project npm run dev

> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
error - ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[2].oneOf[8].use[2]!./styles/globals.css
Error: Cannot find module 'caniuse-lite/data/features/css-unicode-bidi'```

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:6

github_iconTop GitHub Comments

3reactions
bbswebcommented, Sep 12, 2022

Because package caniuse-lite 1.0.30001394 delete the css-unicode-bidi.js file

Temporary solution: add "caniuse-lite": "1.0.30001393" to the package.json and run npm update

0reactions
github-actions[bot]commented, Oct 12, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run dev fails in fresh laravel project - Stack Overflow
NPM run dev fails in a new laravel project. Its says its has problems in my resources\app.js but this file is empty :|...
Read more >
npm run dev error - fresh install - Laracasts
Hi everyone, I'm running a completely fresh install of laravel 5.4.33, have changed no configs or anything (everything default), and the only commands...
Read more >
npm-install - npm Docs
To install all modules listed in both dependencies and devDependencies when NODE_ENV environment variable is set to production , you can use --production=false ......
Read more >
Deployment | Create React App
npm run build creates a build directory with a production build of your ... This is because when there is a fresh page...
Read more >
How To Fix “Laravel Mix NPM run dev error” - YouTube
This video will help you to solve the annoying “Laravel Mix NPM run dev error ” that you probably have seen before when...
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