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

Build fails with errors "TypeError: Cannot read property 'toString' of undefined " #64

suriyakumarcs opened this issue Jan 29, 2019 · 5 comments


Copy link

@suriyakumarcs suriyakumarcs commented Jan 29, 2019

When i run npm run build i have get this error.

TypeError: Cannot read property 'toString' of undefined at e.getRenderedHash (/home/ubuntu/Vue/my-stencil-app/node_modules/@stencil/core/dist/sys/node/index.js:1:324262) at /home/ubuntu/Vue/my-stencil-app/node_modules/@stencil/core/dist/sys/node/index.js:1:325017
Can you help me on this!?

@suriyakumarcs suriyakumarcs changed the title Build fails with errors Build fails with errors "TypeError: Cannot read property 'toString' of undefined " Jan 29, 2019
Copy link

@lukasIO lukasIO commented Jan 30, 2019

having the same problem

edit: solved for me by upgrading to 0.17.0 the app-starter repio still has a 0.16 version

Copy link

@ernestdolog ernestdolog commented Apr 9, 2019

Updated "@stencil/core": "~0.16.2" to "@stencil/core": "~0.17.0". Works.

Copy link

@alvis alvis commented Apr 13, 2019

can confirm that updating @stencil/core resolves the issue.

Copy link

@apiel apiel commented May 25, 2019

I freshly install stencil and get the same issue on build. After running npm install @stencil/core@latest --save-exact, build work but I would expect it to work from the beginning. (this was my first attempt to use stenciljs)

Copy link

@jdnichollsc jdnichollsc commented Sep 27, 2019

I'm having this error building the component:

[20:14.1]  @stencil/core v1.5.3 🐊
[20:14.2]  build, ionphaser, prod mode, started ...
[20:14.2]  transpile started ...
TypeError: Cannot read property 'toString' of undefined at node.typeArguments.filter.forEach
           at Array.forEach (<anonymous>) at visit
           at visitNode
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/typescript/lib/typescript.js:17007:24) at
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/typescript/lib/typescript.js:17135:21) at
           at getAllTypeReferences
           at getAttributeTypeInfo
           at parseMethodDecorator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants