0

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:

enter image description here

  • This error is because it is unable to find the runtime.js file at specified location? is it checking at wrong path or you misplaced this file? – Ganesh Sanap Sep 3 at 6:11
  • So how can i identify? – Chandani Prajapati Sep 3 at 6:12
0

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"
    ]
  }
}

enter image description here

If you can't bundle successfully, I suggest you post in github https://github.com/pnp/generator-spfx/issues

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.