Despite the challenges I face with System.js, I find it to be a valuable tool that I prefer over alternatives.
This is my current System.js configuration:
System.config({
packages: {
app: {
format: 'register',
defaultExtension: 'js'
},
primeng:{
format: 'register',
defaultExtension: 'js'
}
},
map: {
primeng: 'node_modules/primeng'
}
});
I am importing Primeng components in this manner:
import {Accordion} from "primeng/primeng";
import {AccordionTab} from "primeng/primeng";
The TypeScript file is compiled into JavaScript using gulp and then utilized by my index.html
However, I encounter the following error in my terminal:
error TS2307: Cannot find module 'primeng/primeng'
If you have any insights or solutions, please share them. Thank you!