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

Trying to use notebookjs with Angular 10, and nodejs v18.0.0. #43

Open
ksareenAfyaMD opened this issue Jul 16, 2023 · 1 comment
Open
Labels

Comments

@ksareenAfyaMD
Copy link

I tried to add notebooks to my angular project.

          import nb from 'notebookjs';
          var parsed = JSON.parse(resultFile);
          var notebook = nb.parse(parsed);
          console.log(notebook);
          console.log(parsed);

I am getting these errors. There are module not found errors.

 Microsoft.AspNetCore.SpaServices[0]
      ./node_modules/http-proxy-agent/dist/agent.js:45:30-44 - Error: Module not found: Error: Can't resolve 'net' in '...'

fail: Microsoft.AspNetCore.SpaServices[0]
      ./node_modules/http-proxy-agent/dist/agent.js:47:30-44 - Error: Module not found: Error: Can't resolve 'tls' in '...'

fail: Microsoft.AspNetCore.SpaServices[0]
      ./node_modules/http-proxy-agent/dist/agent.js:49:30-44 - Error: Module not found: Error: Can't resolve 'url' in '...'

fail: Microsoft.AspNetCore.SpaServices[0]
      BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.

Could you let us know how to use notebookjs with Angular?

Thank you.

@jsvine
Copy link
Owner

jsvine commented Jul 17, 2023

Hi @ksareenAfyaMD, I'm the maintainer of this library, but unfortunately am not familiar with Angular. If anyone else in the community has suggestions, feel free to share them here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants