Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module '@crxjs/vite-plugin' error after running npm run dev #955

Open
1 of 2 tasks
s-surineni opened this issue Nov 29, 2024 · 2 comments
Open
1 of 2 tasks
Labels
good first issue Good for newcomers

Comments

@s-surineni
Copy link

Build tool

Vite

Where do you see the problem?

  • In the browser
  • In the terminal

Describe the bug

I am following the documentation for https://crxjs.dev/vite-plugin/getting-started/react/dev-basics
When I ran npm run dev I got an error Cannot find module '@crxjs/vite-plugin'

Reproduction

Just follow the documentation steps to create new project with vite react

Logs

No response

System Info

System:
    OS: Linux 6.2 Ubuntu 23.04 23.04 (Lunar Lobster)
    CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-1340P
    Memory: 6.25 GB / 15.30 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.volta/tools/image/node/22.11.0/bin/node
    npm: 10.9.0 - ~/.volta/tools/image/node/22.11.0/bin/npm
    pnpm: 9.12.3 - ~/.volta/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.85
  npmPackages:
    @crxjs/vite-plugin: ^1.0.14 => 1.0.14 
    vite: ^2.9.15 => 2.9.18

Severity

annoyance

@s-surineni
Copy link
Author

The issue resolved after I installed
npm i -S @crxjs/vite-plugin

Please update the document to include this step

@daybreaker42
Copy link

I had same problem and thanks to you, i finally could fix it!
Thank you!!

+ The document really needs to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants