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

Property 'name' does not exist on type 'EmittedPrebuiltChunk' #125

Open
rmrfxyz opened this issue Jul 30, 2023 · 0 comments
Open

Property 'name' does not exist on type 'EmittedPrebuiltChunk' #125

rmrfxyz opened this issue Jul 30, 2023 · 0 comments

Comments

@rmrfxyz
Copy link

rmrfxyz commented Jul 30, 2023

I forked the repo and I am not able to build or run; fails as such:

rollup v3.27.0
bundles src/index.ts → dist/index.cjs, dist/index.mjs...
(!) Plugin typescript: @rollup/plugin-typescript TS2339: Property 'name' does not exist on type 'EmittedFile'.
  Property 'name' does not exist on type 'EmittedPrebuiltChunk'.
src/index.ts: (69:49)

69         this.addWatchFile(file.fileName ?? file.name!);
                                                   ~~~~

created dist/index.cjs, dist/index.mjs in 660ms

[2023-07-30 17:55:27] waiting for changes...
^C ELIFECYCLE  Command failed.

I tried to import EmittedPrebuiltChunk in src/index.ts but that resulted in more errors:

rollup v3.27.0
bundles src/index.ts → dist/index.cjs, dist/index.mjs...
(!) Plugin typescript: @rollup/plugin-typescript TS2339: Property 'concat' does not exist on type 'EmittedPrebuiltChunk | EmittedFile[]'.
  Property 'concat' does not exist on type 'EmittedPrebuiltChunk'.
src/index.ts: (61:29)

61       emitQueue = emitQueue.concat(emitFiles);
                               ~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS2339: Property 'forEach' does not exist on type 'EmittedPrebuiltChunk | EmittedFile[]'.
  Property 'forEach' does not exist on type 'EmittedPrebuiltChunk'.
src/index.ts: (67:17)

67       emitQueue.forEach((file) => {
                   ~~~~~~~

(!) Plugin typescript: @rollup/plugin-typescript TS7006: Parameter 'file' implicitly has an 'any' type.
src/index.ts: (67:26)

67       emitQueue.forEach((file) => {
                            ~~~~

created dist/index.cjs, dist/index.mjs in 655ms

[2023-07-30 17:59:40] waiting for changes...

Am I missing something? 🤔

Thanks for publishing this, it's perfect for my plans! Great work!

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