I have installed one 3rd party module jsPDF with my angular app. The module works perfectly but I get an error in my console:
Cannot find module '../../../node_modules/jspdf/dist/jspdf.min.js'
.
What I did:
- Install the module via npm:
npm install MrRio/jsPDF --save
- Import the module in my component:
import * as jsPDF from '../../../node_modules/jspdf/dist/jspdf.min.js';
- Then simply works with this module in my component.
Is something missing here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…