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

Open
suriyakumarcs opened this issue Jan 29, 2019 · 5 comments

Comments

@suriyakumarcs
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
@lukasIO
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

@ernestdolog
Copy link

@ernestdolog ernestdolog commented Apr 9, 2019

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

@alvis
Copy link

@alvis alvis commented Apr 13, 2019

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

@apiel
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)

@jdnichollsc
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
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:4242:63)
           at Array.forEach (<anonymous>) at visit
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:4240:22)
           at visitNode
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/typescript/lib/typescript.js:17007:24) at
           Object.forEachChild
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/typescript/lib/typescript.js:17135:21) at
           visit
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:4246:30)
           at getAllTypeReferences
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:4248:5)
           at getAttributeTypeInfo
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:4219:5)
           at parseMethodDecorator
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:7415:108)
           at decoratedProps.filter.map.method
           (/Users/jdnichollsc/dev/proyecto26/ion-phaser-ce/node_modules/@stencil/core/dist/compiler/index.js:7370:24)

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

Successfully merging a pull request may close this issue.

None yet
6 participants