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

vite warning with examples/12_css #277

Closed
dai-shi opened this issue Dec 15, 2023 · 6 comments
Closed

vite warning with examples/12_css #277

dai-shi opened this issue Dec 15, 2023 · 6 comments
Assignees

Comments

@dai-shi
Copy link
Owner

dai-shi commented Dec 15, 2023

If we run npm run examples:prd:12_css, it shows:

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

Same happens with npm run examples:dev:12_css

@Aslemammad Can you investigate it?

@Aslemammad
Copy link
Contributor

I'll do, can you assign this one to me?

@himself65
Copy link
Contributor

/Users/himself65/Library/Caches/fnm_multishells/2120_1702514758322/bin/pnpm run dev

> [email protected] dev /Users/himself65/Code/waku/examples/12_css
> VITE_CJS_TRACE=true waku dev --with-ssr

ready: Listening on http://localhost:3000/
Trace: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
    at warnCjsUsage (/Users/himself65/Code/waku/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/index.cjs:32:3)
    at Object.<anonymous> (/Users/himself65/Code/waku/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/index.cjs:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/himself65/Code/waku/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.dev.js:6:12)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
Trace: The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
    at warnCjsUsage (/Users/himself65/Code/waku/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/index.cjs:32:3)
    at Object.<anonymous> (/Users/himself65/Code/waku/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/index.cjs:3:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Module.require (node:internal/modules/cjs/loader:1235:19)
    at require (node:internal/modules/helpers:176:18)
    at Object.<anonymous> (/Users/himself65/Code/waku/node_modules/.pnpm/@[email protected]_@[email protected][email protected]/node_modules/@vanilla-extract/vite-plugin/dist/vanilla-extract-vite-plugin.cjs.dev.js:6:12)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)

@himself65
Copy link
Contributor

vanilla-extract-css/vanilla-extract#1236

@Aslemammad
Copy link
Contributor

So we cannot do anything on our side, correct?

@himself65
Copy link
Contributor

Yep

@dai-shi
Copy link
Owner Author

dai-shi commented Dec 18, 2023

okay, i'll close this as it will be fixed when upstream does.

@dai-shi dai-shi closed this as completed Dec 18, 2023
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

3 participants