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

Issues Building It on Nodejs Enviroment #28

Open
ygorcarmo opened this issue May 28, 2024 · 1 comment
Open

Issues Building It on Nodejs Enviroment #28

ygorcarmo opened this issue May 28, 2024 · 1 comment

Comments

@ygorcarmo
Copy link

ygorcarmo commented May 28, 2024

repo: link

error:

[vite] Error when evaluating SSR module /src/trafficLightActor.ts: failed to import "@statelyai/sky"
|- Error [ERR_REQUIRE_ESM]: require() of ES Module /projects/vite-express/node_modules/superjson/dist/index.js from /home/ygorc/projects/vite-express/node_modules/@statelyai/sky/dist/statelyai-sky.cjs.js not supported.
Instead change the require of index.js in /projects/vite-express/node_modules/@statelyai/sky/dist/statelyai-sky.cjs.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/projects/vite-express/node_modules/@statelyai/sky/dist/statelyai-sky.cjs.js:6:17)

9:28:17 PM [vite] Error when evaluating SSR module ./src/app.ts: failed to import "/src/trafficLightActor.ts"
|- Error [ERR_REQUIRE_ESM]: require() of ES Module /projects/vite-express/node_modules/superjson/dist/index.js from /projects/vite-express/node_modules/@statelyai/sky/dist/statelyai-sky.cjs.js not supported.
Instead change the require of index.js in /projects/vite-express/node_modules/@statelyai/sky/dist/statelyai-sky.cjs.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/projects/vite-express/node_modules/@statelyai/sky/dist/statelyai-sky.cjs.js:6:17)
@mellson
Copy link
Collaborator

mellson commented Jul 22, 2024

Hi @ygorcarmo, sorry for the late reply. Is this still something you need help with?

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