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

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

1 Answer 1

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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