Cannot run any nteract application locally
xinyi-joffre opened this issue · comments
Application or Package Used
I tried to set nteract up locally, so that I could contribute fixes for existing issues. It looks like none of the current options for running nteract locally seem to be working.
I tried:
- nteract desktop
- nteract web
- nteract on jupyter
Describe the bug
For nteract desktop, I faced a similar error as issue #5697.
For nteract web, initially I ran into import css errors for jupyter-widgets/controls. After upgrading jupyter-widgets/controls to 5.0.0, there was a different set of errors. When running "npm run dev" for nteract web after that, I ran into issues such as:
-
404 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js?V=2.7.9 (127.0.0.1) 4.080000ms referer=http://127.0.0.1:8888/nteract/edit
-
WARNING in ./node_modules/@nteract/actions/src/index.ts 16:0-66
[1] "export 'Action' was not found in './utils'
[1] @ ./node_modules/@nteract/core/src/index.ts
[1] @ ./app/bootstrap.tsx
[1] @ ./app/index.tsx -
Website console errors:
- Invalid hook call. Hooks can only be called inside of the body of a function component.
- The above error occurred in the <Connect(PureNewNotebookNavigation)> component:
in Connect(PureNewNotebookNavigation) (created by DirectoryApp)
- The above error occurred in the <Connect(PureNewNotebookNavigation)> component:
- reportUnhandledError.js?e244:10 Uncaught Error: A cross-origin error was thrown. React doesn't have access to the actual error object in development.
- Invalid hook call. Hooks can only be called inside of the body of a function component.
For the web application, I got during "npm run build":
ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.node has an unknown property 'fs'. These properties are valid:
object { __dirname?, __filename?, global? }
-> Options object for node compatibility features.
To Reproduce
Try to run any of the applications from a fresh clone of the nteract repository.
Expected behavior
Applications run to enable local development of nteract.
Desktop (please complete the following information):
- OS: Windows 11 Enterprise: 22000.856
- Browser: Chrome: 104.0.5112.82
Additional context
node version: v16.17.0
npm version: 8.1.2
yarn version: 1.22.19