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 with Path ERROR !!! #497

Open
TaoWolf opened this issue Dec 20, 2024 · 14 comments
Open

npm run dev with Path ERROR !!! #497

TaoWolf opened this issue Dec 20, 2024 · 14 comments

Comments

@TaoWolf
Copy link

TaoWolf commented Dec 20, 2024

(base) PS D:_SourceCode\VsCode\openai-realtime-console> npm run dev

dev
node server.js --dev

11:16:32 [vite] Pre-transform error: Failed to load url ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx (resolved id: ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx) in /:routes.js. Does the file exist?
11:16:32 [vite] Error when evaluating SSR module /:routes.js:
|- Error: Failed to load url ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx (resolved id: ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx) in /:routes.js. Does the file exist?
at loadAndTransform (file:///D:/_SourceCode/VsCode/openai-realtime-console/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51920:17)
at async instantiateModule (file:///D:/_SourceCode/VsCode/openai-realtime-console/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52874:44)

11:16:32 [vite] Error when evaluating SSR module D:_SourceCode\VsCode\openai-realtime-console\client\index.js:
|- Error: Failed to load url ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx (resolved id: ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx) in /:routes.js. Does the file exist?
at loadAndTransform (file:///D:/_SourceCode/VsCode/openai-realtime-console/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51920:17)
at async instantiateModule (file:///D:/_SourceCode/VsCode/openai-realtime-console/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52874:44)

node:internal/modules/run_main:129
triggerUncaughtException(
^

Error: Failed to load url ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx (resolved id: ./_SourceCode/VsCode/openai-realtime-console/D:/_SourceCode/VsCode/openai-realtime-console/client/pages/index.jsx) in /:routes.js. Does the file exist?
at loadAndTransform (file:///D:/_SourceCode/VsCode/openai-realtime-console/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:51920:17)
at async instantiateModule (file:///D:/_SourceCode/VsCode/openai-realtime-console/node_modules/vite/dist/node/chunks/dep-CB_7IfJ-.js:52874:44) {
code: 'ERR_LOAD_URL'
}

Node.js v20.16.0

@AI-Beans
Copy link

I met the same error !

@Waanders
Copy link

Same error.

@jjmlovesgit
Copy link

Yes - Windows 11 for me - same error

@aakashdusane
Copy link

aakashdusane commented Dec 20, 2024

same error for me. Could this be a windows compatibility issue? I'm not too well versed with react, vite, or fastify but it looks like it's trying to load ./Path/to/openai-realtime-console/C:/./Path/to/openai-realtime-console/openai-realtime-console/client/pages/index.jsx

Which is some duplication error, where it's attaching the absolute path to the relative path for some reason.

@bloodlinealpha
Copy link

same error for me. Could this be a windows compatibility issue? I'm not too well versed with react, vite, or fastify but it looks like it's trying to load ./Path/to/openai-realtime-console/C:/./Path/to/openai-realtime-console/openai-realtime-console/client/pages/index.jsx

Which is some duplication error, where it's attaching the absolute path to the relative path for some reason.

No, it just not set up correctly. It is trying to import files that do not exist.

Updating ./client/index.js allows the server to run, but does not render any of the HTML.

import create from "/:create.jsx";

export default {
  context: import("/:context.js"),
  create,
};

@bloodlinealpha
Copy link

same error for me. Could this be a windows compatibility issue? I'm not too well versed with react, vite, or fastify but it looks like it's trying to load ./Path/to/openai-realtime-console/C:/./Path/to/openai-realtime-console/openai-realtime-console/client/pages/index.jsx
Which is some duplication error, where it's attaching the absolute path to the relative path for some reason.

No, it just not set up correctly. It is trying to import files that do not exist.

Updating ./client/index.js allows the server to run, but does not render any of the HTML.

import create from "/:create.jsx";

export default {
  context: import("/:context.js"),
  create,
};

I take back my previous comments lol... there are definitely path issues with windows related to the Fastify package fastify/fastify-vite#150

@eulix-films
Copy link

Same issue and also using windows

@bloodlinealpha
Copy link

Hi all,

If you are having issues with this version using Fastify, I forked this and created a new version using Express https://github.com/bloodlinealpha/openai-realtime-console.

Just add a .env file to the root with your API key, run npm install, then npm run dev and you should be up and running!!

@DavidVollendroff
Copy link

Hi all,

If you are having issues with this version using Fastify, I forked this and created a new version using Express https://github.com/bloodlinealpha/openai-realtime-console.

Just add a .env file to the root with your API key, run npm install, then npm run dev and you should be up and running!!

Thanks! I'll give this a try.

@gwpl
Copy link

gwpl commented Dec 22, 2024

potentially related, maybe separate issue, so for now I made it separate:
#498

@gwpl
Copy link

gwpl commented Dec 22, 2024

Hi all,

If you are having issues with this version using Fastify, I forked this and created a new version using Express https://github.com/bloodlinealpha/openai-realtime-console.

Just add a .env file to the root with your API key, run npm install, then npm run dev and you should be up and running!!

It's missing features that are in this one, look at screenshots/screencasts:

In particular:

Other wish I would love to have is:

Also what would be nice, is ability to switch on/off "Server turn detection" like in https://platform.openai.com/playground/realtime .

I wonder why OpenAI does not publish proper running properly base code, with Dockerfiles etc, that has feature parity to their playground: https://platform.openai.com/playground/realtime , so we could keep features we need and cut out rest... that's topic for another thread , let's get it running in this one :).

@dmiyamasu
Copy link

same problem here! windows 10

@tgy0728
Copy link

tgy0728 commented Dec 26, 2024

Is there a solution? Windows 11 also reported the same error.

@edengby
Copy link

edengby commented Dec 30, 2024

Same here.

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