I have created SPFx webpart for Angular Elements using below link:


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? Sep 3 '19 at 6:11
  • So how can i identify? Sep 3 '19 at 6:12

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": [
    "lib": [

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.