Home > Net >  Editing npm package locally in Angular 13
Editing npm package locally in Angular 13

Time:05-30

I have an Angular app (v13.3.10) and I'm using the forked package

And this is how the ngx-markdown package looks when running npm install ngx-markdown --save normally:

normal package

(The file I'm trying to edit specifically is in ngx-markdown/fesm2020/ngx-markdown.mjs)

Furthermore, when npm installing my repo, none of its peer dependencies installed, along with a slew of other errors.

Why does webpack not let me change source files to view in localhost? What else can I do from here?

CodePudding user response:

  1. Change your node module name
  2. Then in terminal run npm i
  3. Now you get new node module file
  4. then run your code ng serve

CodePudding user response:

Can you make the same changes that were made in src folder to the file in esm2020, fesm 2020 folders. Those are the files referenced by webpack.

  • Related