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

npm run dev giving error, npm run build works fine #9387

Open
Rushijoshi3798 opened this issue May 7, 2024 · 1 comment
Open

npm run dev giving error, npm run build works fine #9387

Rushijoshi3798 opened this issue May 7, 2024 · 1 comment

Comments

@Rushijoshi3798
Copy link

Rushijoshi3798 commented May 7, 2024

Reproduction

Hi Team,

I am getting below error every time when I run the "npm run dev" command.
npm run dev - not working

`
Unexpected Server Error

ReferenceError: y is not defined
`

After getting this error I am not able to proceed with our application (Even Print 'Hello world' is not working on the _index.jsx file ).

But npm run build & then npm run start works just fine as if nothing had happened.

Details:

Node Version - v20.11.1
Npm Version - 10.2.4

Package.Json -

{
"name": "easemyactivity",
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"build": "remix vite:build",
"dev": "remix vite:dev",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
"start": "remix-serve ./build/server/index.js",
"typecheck": "tsc"
},
"dependencies": {
"@remix-run/node": "^2.9.1",
"@remix-run/react": "^2.9.1",
"@remix-run/serve": "^2.9.1",
"isbot": "^4.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@remix-run/dev": "^2.9.1",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"autoprefixer": "^10.4.19",
"eslint": "^8.38.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.1.6",
"vite": "^5.1.0",
"vite-tsconfig-paths": "^4.2.1"
},
"engines": {
"node": ">=18.0.0"
}
}

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
    Memory: 591.44 MB / 5.86 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (124.0.2478.51)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @remix-run/dev: ^2.9.1 => 2.9.1
    @remix-run/node: ^2.9.1 => 2.9.1
    @remix-run/react: ^2.9.1 => 2.9.1
    @remix-run/serve: ^2.9.1 => 2.9.1
    vite: ^5.1.0 => 5.2.11

Used Package Manager

npm

Expected Behavior

npm run dev should run properly.

Actual Behavior

npm run dev is giving

Unexpected Server Error
ReferenceError: y is not defined

@brophdawg11
Copy link
Contributor

There's not much information here that we can use to triage. Can you provide a minimal reproduction of the issue?

@brophdawg11 brophdawg11 added needs-response We need a response from the original author about this issue/PR package:dev labels May 8, 2024
@github-actions github-actions bot removed the needs-response We need a response from the original author about this issue/PR label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants