Skip to content

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

@ksareenAfyaMD

Description

@ksareenAfyaMD

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions