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

error during build: Could not resolve "./openai-realtime-console/C:/openai-realtime-console/client/pages/index.jsx" from "../../:routes.js" file: /:routes.js #509

Closed
QuicksilverSlick opened this issue Jan 11, 2025 · 7 comments

Comments

@QuicksilverSlick
Copy link

Vite issue:

When running in windows 10, in visual code studio, I get the error of duplicated path and it can't run in dev mode.

PS C:\openai-realtime-console> npm run build

build
npm run build:client && npm run build:server

build:client
vite build --outDir dist/client --ssrManifest

vite v5.4.11 building for production...
✓ 13 modules transformed.
x Build failed in 364ms
error during build:
Could not resolve "./openai-realtime-console/C:/openai-realtime-console/client/pages/index.jsx" from "../../:routes.js"
file: /:routes.js
at getRollupError (file:///C:/openai-realtime-console/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
at error (file:///C:/openai-realtime-console/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
at ModuleLoader.handleInvalidResolvedId (file:///C:/openai-realtime-console/node_modules/rollup/dist/es/shared/node-entry.js:20088:24)
at file:///C:/openai-realtime-console/node_modules/rollup/dist/es/shared/node-entry.js:20048:26
PS C:\openai-realtime-console>

@QuicksilverSlick
Copy link
Author

Also, be kind. I'm not a dev but I'm finding my way through. I'm sure there's a clear answer but I have exhausted all of my avenues.

@AlanNunes
Copy link

I am facing the same problem

@QuicksilverSlick
Copy link
Author

@AlanNunes I'm still actively looking for a solution to this. I will update as soon as I get a fix.

@Thaina
Copy link

Thaina commented Jan 17, 2025

Is it windows problem? devinstall use zx command which are not supported in windows

@gatensj
Copy link

gatensj commented Jan 18, 2025

I am experiencing this issue too. I tried spinning up a WSL to test on Linux and ran into similar build issues. Please advise.

@JanLangeDK
Copy link

Just did a clone, created .env file with key and installed vite, on Windows Server:
C:\Dev\openai-realtime-console>npm install -D vite
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead

added 348 packages, and audited 349 packages in 9s

85 packages are looking for funding
run npm fund for details

found 0 vulnerabilities

C:\Dev\openai-realtime-console>npm run build

build
npm run build:client && npm run build:server

build:client
vite build --outDir dist/client --ssrManifest

vite v5.4.14 building for production...
✓ 10 modules transformed.
x Build failed in 1.38s
error during build:
Could not resolve "./Dev/openai-realtime-console/C:/Dev/openai-realtime-console/client/pages/index.jsx" from "../../../:routes.js"
file: /:routes.js
at getRollupError (file:///C:/Dev/openai-realtime-console/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
at error (file:///C:/Dev/openai-realtime-console/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
at ModuleLoader.handleInvalidResolvedId (file:///C:/Dev/openai-realtime-console/node_modules/rollup/dist/es/shared/node-entry.js:20088:24)
at file:///C:/Dev/openai-realtime-console/node_modules/rollup/dist/es/shared/node-entry.js:20048:26

@kwhinnery-openai
Copy link
Collaborator

Hi there - we've just updated the console app to use a combination of Express and Vite that runs on both Mac and Windows. Please check out the latest version and see if it works for you. Thanks for your patience!

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

6 participants