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

[BUG] Changing the file extension from .ts to .js #478

Open
1 task done
kamnajain06 opened this issue Oct 27, 2024 · 0 comments
Open
1 task done

[BUG] Changing the file extension from .ts to .js #478

kamnajain06 opened this issue Oct 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kamnajain06
Copy link

kamnajain06 commented Oct 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently all the files are having .ts extension but they have been imported with .js extension, because of this the system is unable to fetch the required file due to mismatch of the file names.

Expected Behavior

The extension of the file name and the imported files should be same.

Reproduction steps

1. install node
2. Run npm i
3. See error

Screenshots

Screenshot 2024-10-28 at 12 31 48 AM

Logs

kamnajain06@ubuntu:~/git_demo/wanderlust/backend$ npm run dev

> dev
> nodemon server.js

[nodemon] 3.1.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node server.js server.js`
node:internal/modules/cjs/loader:1249
  throw err;
  ^

Error: Cannot find module '/home/kamnajain06/git_demo/wanderlust/backend/server.js'
    at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
    at Function._load (node:internal/modules/cjs/loader:1072:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
    at node:internal/main/run_main_module:36:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v23.1.0

Browsers

No response

OS

Linux

@kamnajain06 kamnajain06 added the bug Something isn't working label Oct 27, 2024
IzharMohammed pushed a commit to IzharMohammed/wanderlust that referenced this issue Oct 29, 2024
IzharMohammed added a commit to IzharMohammed/wanderlust that referenced this issue Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant