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've seen some information online that leads me to believe this may be related to the warning:
⚠ You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env
Which I believe is being triggered due to nx replacing 'process.env.NODE_ENV' with the string literal development.
Error: <Html> should not be imported outside of pages/_document.
Read more: https://nextjs.org/docs/messages/no-document-import-in-page
at Z (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:16:5430)
at I (/Users/lukewood/workspace/yeti/apps/lit-games/.next/server/chunks/392.js:6:1263)
at renderWithHooks (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
at renderIndeterminateComponent (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5732:15)
at renderElement (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5957:7)
at renderNodeDestructiveImpl (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6115:11)
at renderNodeDestructive (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6087:14)
at finishClassComponent (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5688:3)
at renderClassComponent (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5696:3)
at renderElement (/Users/lukewood/workspace/yeti/node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5954:7)
Package Manager Version
pnpm 8.10.2
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
Building the site by deafult causes the error:
"
Error: should not be imported outside of pages/_document.
Read more: https://nextjs.org/docs/messages/no-document-import-in-page
"
I've seen some information online that leads me to believe this may be related to the warning:
Which I believe is being triggered due to nx replacing 'process.env.NODE_ENV' with the string literal
development
.This happens on every page, and is easy to repo.
Expected Behavior
It should build just fine.
GitHub Repo
https://github.com/nrwl/nx-examples
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
pnpm 8.10.2
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: