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
When copying the nextjs example repo I was unable to get it working in the pages router.
The following error is produced:
% yarn dev
▲ Next.js 14.2.5
- Local: http://localhost:3000
✓ Starting...
✓ Ready in 1083ms
○ Compiling / ...
(node:39699) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API
(Use `node --trace-deprecation ...` to show where the warning was created)
⨯ ./node_modules/@datalayer/jupyter-react/lib/components/commands/CommandsAdapter.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/@datalayer/jupyter-react/lib/components/commands/CommandsAdapter.js
Import trace for requested module:
./node_modules/@datalayer/jupyter-react/lib/components/commands/CommandsAdapter.css
./node_modules/@datalayer/jupyter-react/lib/components/commands/CommandsAdapter.js
./node_modules/@datalayer/jupyter-react/lib/components/commands/Commands.js
./node_modules/@datalayer/jupyter-react/lib/index.js
./components/NotebookComponent.tsx
Description
When copying the nextjs example repo I was unable to get it working in the pages router.
The following error is produced:
Any help is greatly appreciated!
Reproduce
Switching app -> pages router causes the issue. See this forked repo: datalayer-examples/jupyter-nextjs-example@main...epshone:jupyter-nextjs-pages-example:main
Loading localhost:3000/ causes the errors above
Expected behavior
Hopefully datalayer is compatible with the pages router.
Context
The text was updated successfully, but these errors were encountered: