I have created SPFx webpart for Angular Elements using below link:
https://pnp.github.io/generator-spfx/howtos/angularelements/
Getting error in npm run bundle as below:
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI have created SPFx webpart for Angular Elements using below link:
https://pnp.github.io/generator-spfx/howtos/angularelements/
Getting error in npm run bundle as below:
I tested this generator In June and I got bundle error and did research&test, and update the es target to es5 and got bundle successed.
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}
If you can't bundle successfully, I suggest you post in github https://github.com/pnp/generator-spfx/issues
runtime.js
file at specified location? is it checking at wrong path or you misplaced this file?