Stencil version:
@stencil/[email protected]
I'm submitting a:
Current behavior:
Upgrading an app from 0.2.3 to 0.3.0-4 fails to build. I'm seeing this stack trace when I run stencil build:
PS C:\Users\IGEN261\code\github\stencil-extended-elements> npm run build
> [email protected] build C:\Users\IGEN261\code\github\stencil-extended-elements
> stencil build
[54:58.3] @stencil/core v0.3.0-4
[54:58.3] build, mycomponent, prod mode, started ...
[54:58.3] compile started ...
[55:01.3] compile finished in 2.99 s
[ ERROR ] TypeError: Object.entries is not a function at
C:\Users\IGEN261\code\github\stencil-extended-elements\node_modules\@stencil\core\dist\compiler\index.js:3530:16
at next (native) at
C:\Users\IGEN261\code\github\stencil-extended-elements\node_modules\@stencil\core\dist\compiler\index.js:3478:71
at __awaiter$9
(C:\Users\IGEN261\code\github\stencil-extended-elements\node_modules\@stencil\core\dist\compiler\index.js:3474:12)
at writeLegacyModules
(C:\Users\IGEN261\code\github\stencil-extended-elements\node_modules\@stencil\core\dist\compiler\index.js:3529:12)
at
C:\Users\IGEN261\code\github\stencil-extended-elements\node_modules\@stencil\core\dist\compiler\index.js:3572:37
at next (native) at fulfilled
(C:\Users\IGEN261\code\github\stencil-extended-elements\node_modules\@stencil\core\dist\compiler\index.js:3553:58)
[55:01.5] build failed in 3.17 s
Expected behavior:
Steps to reproduce:
not-a-function-bug branch: https://github.com/mattdsteele/stencil-extended-elements/tree/not-a-function-bugnpm inpm run buildOther information:
This has happened on two separate projects. I'm on a Win10 machine, if that's important.
Hey, thanks for opening an issue with us! Would you mind trying this with 0.3.0-5 ? I am not able to reproduce with this version.
Same issue with 0.3.0-5:
> [email protected] build C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug
> stencil build
[48:55.9] @stencil/core v0.3.0-5
[48:55.9] build, mycomponent, prod mode, started ...
[48:55.9] compile started ...
[48:58.6] compile finished in 2.66 s
[ ERROR ] TypeError: Object.entries is not a function at
C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug\node_modules\@stencil\core\dist\compiler\index.js:3529:16
at next (native) at
C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug\node_modules\@stencil\core\dist\compiler\index.js:3474:71
at __awaiter$9
(C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug\node_modules\@stencil\core\dist\compiler\index.js:3470:12)
at writeLegacyModules
(C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug\node_modules\@stencil\core\dist\compiler\index.js:3528:12)
at
C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug\node_modules\@stencil\core\dist\compiler\index.js:3571:37
at next (native) at fulfilled
(C:\Users\IGEN261\Desktop\stencil-extended-elements-not-a-function-bug\node_modules\@stencil\core\dist\compiler\index.js:3552:58)
[48:58.8] build failed in 2.85 s
npm ERR! code ELIFECYCLE
I had the same issue when running @stencil/core v0.3.0-5 with Node 6. I upgraded to Node 8 and it fixed the thing.
ahh darn, trying to make sure the cli still works in Node 6. Anyone able to help debug this? Should be a simple fix.
Looks like it's coming from here: https://github.com/ionic-team/stencil/blob/78f0f597040edd4cb3a50d1ea9d28799107e37cf/src/compiler/bundle/rollup-bundle.ts#L69
Assuming it's just a matter of using Object.keys I could try putting a PR together; might need some help getting it built and tested though!
Hi, I am still getting this error: ##[error]Unhandled: Object.entries is not a function
I have my extension written in typescript. I am importing "table" as
import {
createStream
} from 'table';
This is to show the output in tabular format on the console.
Locally this is working fine with following node and typescript versions - 4.0.3 and 12.16.1 respectively, but when i deploy this extension on azure Devops, I am getting the following error:
##[error]Unhandled: Object.entries is not a function
The version on Azure DevOps agent are:
Typescript: Version 4.0.3
Node: v12.18.4
I am stuck in this from 2 days. Any pointers will be helpful.
Most helpful comment
I had the same issue when running @stencil/core v0.3.0-5 with Node 6. I upgraded to Node 8 and it fixed the thing.