jsvine / jsvine/notebookjs

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

Open
#43 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
298
Forks
44
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the notebookjs import and the Angular 10/nodejs v18 setup, then inspect the reported webpack errors in node_modules/http-proxy-agent/dist/agent.js. Determine whether notebookjs supports this environment; done means providing a confirmed working usage path or documenting the compatibility limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript, nodejs
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.