Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 errors: Cannot find module 'abortcontroller-polyfill...' and Cannot read property 'source' of undefined #839

Closed
Unkrass opened this issue Jun 23, 2021 · 1 comment

Comments

@Unkrass
Copy link

Unkrass commented Jun 23, 2021

After updating to Ember octane our build process in the deployment pipeline fails with the error Error: Cannot find module 'abortcontroller-polyfill/dist/cjs-ponyfill' and when I try to reproduce the error locally (because I saw this), I get another error when building with ember build --environment production, saying:

broccoliBuilderErrorStack: TypeError: Cannot read property 'source' of undefined
  - code: [undefined]
  - codeFrame: Cannot read property 'source' of undefined
  - errorMessage: Cannot read property 'source' of undefined
        at FastBootConfig (Generate: FastBoot package.json)

I used the following packages:

    "ember-cli": "~3.21.2",
    "ember-cli-fastboot": "^2.2.3",
    "ember-fetch": "^8.1.0",

Has anyone seen this before and knows what to do?

@Unkrass Unkrass changed the title 2 errors: Cannot find module 'abortcontroller-polyfill/ and Cannot read property 'source' of undefined 2 errors: Cannot find module 'abortcontroller-polyfill...' and Cannot read property 'source' of undefined Jun 23, 2021
@Unkrass
Copy link
Author

Unkrass commented Jun 25, 2021

we added a yarn inside the dist folder to fix the abortcontroller error and updated a fastboot-app-server dependency that's inside another package.json. everything works fine now.

@Unkrass Unkrass closed this as completed Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant