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

Cannot read property 'end' of undefined #441

Closed
justinfagnani opened this issue Apr 25, 2018 · 5 comments
Closed

Cannot read property 'end' of undefined #441

justinfagnani opened this issue Apr 25, 2018 · 5 comments

Comments

@justinfagnani
Copy link

We're hitting a compile error on https://unpkg.com/@webcomponents/[email protected]/src/custom-style-interface.js

This file works correctly in browsers with native module support.

See the reproduction here: https://stackblitz.com/edit/js-ajeufg?file=index.js

@justinfagnani
Copy link
Author

FYI, ultimately we're working towards reproducing this error we're seeing with some samples:

Unexpected identifier
Evaluating https://unpkg.com/@webcomponents/[email protected]/src/custom-style-interface.js
Evaluating https://unpkg.com/@webcomponents/[email protected]/entrypoints/custom-style-interface.js
Evaluating https://unpkg.com/@polymer/[email protected]/lib/elements/custom-style.js
Evaluating https://unpkg.com/@polymer/[email protected]/polymer-legacy.js
Evaluating https://unpkg.com/@polymer/[email protected]/paper-checkbox.js

The problem seems to be with a default export that also has a name, like:

export default class Foo {}

but this isn't reproducible in a project that just uses two project-local modules, so something seems dependent on the module coming from a dependency.

@EricSimons
Copy link
Member

@justinfagnani it looks like the typescript compiler itself is hitting an error, which is causing the output to essentially be blank, thus leading to the runtime error. Digging into what's causing tsc to break now

@EricSimons
Copy link
Member

@justinfagnani looks like this was an issue in previous versions of TS; bumping to latest seems to fix this. Will deploy to prod and circle back once online 👍

@EricSimons
Copy link
Member

@justinfagnani fixed on prod! Let me know if all looks good on your end as well

@e111077
Copy link

e111077 commented Apr 26, 2018

all aces on our end!

@sulco sulco closed this as completed Feb 8, 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

4 participants