Ho ottenuto un error quando si utilizza angular2-infinite-scroll. Voglio riprodurlo in un plunkr.Come aggiungere un pacchetto NPM correttamente nel plunker?
Ho cercato di usare npmcdn, così ho aggiungere questa riga nel file diindex.html:
<script src="https://npmcdn.com/[email protected]"></script>
ma ho ottenuto l'errore:
Uncaught ReferenceError: require is not defined
Questo è il mio plunker.
Come posso aggiungere un pacchetto NPM correttamente nel plunker?
Aggiungere all'oggetto 'map' nel file' config.js' ed eventualmente anche nell'oggetto 'packages', se il pacchetto non ha un' index.js '. – rinukkusu