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
I am getting an error when I try to run my application. I am not sure if this is a node error or Netlify error or a Remix error. See below. I get the error shown below. What does node:internal mean? I have no idea.
Function remix-server has returned an error: Invalid module "...uildserverserver.js" is not a valid package name imported from C:\Users\Peter\Documents\Visual_Studio_Code\Projects\WebApplication5\WebApplication5\my-remix-udemy-section3-netlify2\.netlify\functions-serve\.unzipped\remix-server\remix-server.mjsTypeError: Invalid module "...uildserverserver.js" is not a valid package name imported from C:\Users\Peter\Documents\Visual_Studio_Code\Projects\WebApplication5\WebApplication5\my-remix-udemy-section3-netlify2\.netlify\functions-serve\.unzipped\remix-server\remix-server.mjs at new NodeError (node:internal/errors:406:5) at parsePackageName (node:internal/modules/esm/resolve:718:11) at packageResolve (node:internal/modules/esm/resolve:740:5) at moduleResolve (node:internal/modules/esm/resolve:838:20) at defaultResolve (node:internal/modules/esm/resolve:1043:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39) at link (node:internal/modules/esm/module_job:84:36)Response with status 500 in 446 ms.
Node.js version
Not applicable.
Example code
import{defaultasdefault2}from"....\buildserverserver.js";// The import statement above was copied from below and this // comment was added to explain what I did import{createRequireas___nfyCreateRequire}from"module";import{fileURLToPathas___nfyFileURLToPath}from"url";import{dirnameas___nfyPathDirname}from"path";let__filename=___nfyFileURLToPath(import.meta.url);let__dirname=___nfyPathDirname(___nfyFileURLToPath(import.meta.url));letrequire=___nfyCreateRequire(import.meta.url);// .netlify/functions-internal/remix-server.mjsimport{defaultasdefault2}from"....\buildserverserver.js";varconfig={name: "Remix server handler",generator: "@netlify/remix-adapter@2.3.0",path: "/*",preferStatic: true};export{config,default2asdefault};
Operating system
Windows 10
Scope
I am using the netlify serve command under VSC.
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered:
Hi, this seems like an issue with netlify or remix. node:internal refers to the internal workings of Node.js. Those files are in the /lib folder of the core repository (nodejs/core)
Details
I am getting an error when I try to run my application. I am not sure if this is a node error or Netlify error or a Remix error. See below. I get the error shown below. What does
node:internal
mean? I have no idea.Node.js version
Not applicable.
Example code
Operating system
Windows 10
Scope
I am using the
netlify serve
command under VSC.Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: