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

dist folder error #32

Open
Lore228295 opened this issue Jul 2, 2024 · 2 comments
Open

dist folder error #32

Lore228295 opened this issue Jul 2, 2024 · 2 comments

Comments

@Lore228295
Copy link

C:\APPS\FRIEND-CONNECT\FriendConnect-main\FriendConnect-main\test>node --es-module-specifier-resolution=node --experimental-fetch C:\APPS\FRIEND-CONNECT\FriendConnect-main\FriendConnect-main\test\index.js
(node:26820) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use node --trace-warnings ... to show where the warning was created)
node:internal/errors:496
ErrorCaptureStackTrace(err);
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/C:/APPS/FRIEND-CONNECT/FriendConnect-main/FriendConnect-main/dist/index.js' imported from C:\APPS\FRIEND-CONNECT\FriendConnect-main\FriendConnect-main\test\index.js
at new NodeError (node:internal/errors:405:5)
at finalizeResolution (node:internal/modules/esm/resolve:306:15)
at moduleResolve (node:internal/modules/esm/resolve:980:10)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:403:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:372:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
at ModuleWrap. (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36) {
url: 'module',
code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.19.1

C:\APPS\FRIEND-CONNECT\FriendConnect-main\FriendConnect-main\test>

@Lore228295
Copy link
Author

basicly "dist" not found (when running test/index.js)

@densellp
Copy link
Collaborator

densellp commented Aug 21, 2024

dist is generated from compiling the Typescript, try tsc to compile the typescript code

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

No branches or pull requests

2 participants