You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Runtime error when using the build version of the app produced by adapter-node. This seems to happen when the typescript option is selected, but I am not sure.
Logs
N/A see stacktrace
To Reproduce
npm init svelte@next my-app
select skeleton
select yes for typescript, eslint, and prettier
cd my-app
npm install
npm install -D @sveltejs/adapter-node@next
edit the svelte.config.js to install the adapter: adapter: node(), in kit and import node from '@sveltejs/adapter-node'; at the top
Expected behavior
I'd expect the node application to start up and run on port 3000, but instead it immediately crashes with a 130 exit code
Stacktraces
Stack trace
internal/process/esm_loader.js:74
internalBinding('errors').triggerUncaughtException(
^
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received undefined
at createRequire (internal/modules/cjs/loader.js:1168:11)
at file:///home/paul/projects/my-app/build/index.js:1566:18
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:177:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5) {
code: 'ERR_INVALID_ARG_VALUE'
}
Probably low, and definitely not personally urgent. This seems like it could be a large issue so I figured I'd submit it, but I am pretty convinced that I am just doing something wrong in my setup.
The text was updated successfully, but these errors were encountered:
Describe the bug
Runtime error when using the build version of the app produced by adapter-node. This seems to happen when the typescript option is selected, but I am not sure.
Logs
N/A see stacktrace
To Reproduce
npm init svelte@next my-app
cd my-app
npm install
npm install -D @sveltejs/adapter-node@next
svelte.config.js
to install the adapter:adapter: node()
, in kit andimport node from '@sveltejs/adapter-node';
at the topnpm run build
node build
Small repo that illustrates the problem:
https://github.com/paul-schwendenman/congenial-octo-rotary-phone
Expected behavior
I'd expect the node application to start up and run on port 3000, but instead it immediately crashes with a
130
exit codeStacktraces
Stack trace
Information about your SvelteKit Installation:
Diagnostics
browser: n/a
Severity
Probably low, and definitely not personally urgent. This seems like it could be a large issue so I figured I'd submit it, but I am pretty convinced that I am just doing something wrong in my setup.
The text was updated successfully, but these errors were encountered: