plugins icon indicating copy to clipboard operation
plugins copied to clipboard

(Compilation) error RollupError: Expected '{', got 'interface' / token 'static' . Expected * for generator, private key, identifier or async

Open LaserKaspar opened this issue 11 months ago • 2 comments

  • Rollup Plugin Name: @rollup/plugin-dynamic-import-vars
  • Rollup Plugin Version: 2.1.2
  • Rollup Version: v4.9.6
  • Operating System (or Browser): Windows
  • Node Version: v20.9.0
  • Link to reproduction (⚠️ read below): https://github.com/Stirling-Tools/Stirling-PDF/tree/v2-wip (cd ./server-node && npm run dev - Sadly I don't have anything better to reproduce this, sorry...)

Expected Behavior

Dev: Compiles without pressing CTRL-S in a random ts file. Prod: Compiles

Actual Behavior

Dev: Compiles only after pressing CTRL-S in a random ts file. Prod: Doesn't compile

Additional Information

When running cd ./server-node && npm run dev the build fails: image

When I press CTRL-S in a random file (to keep it the same for all of us I chose ./server-node/index.ts) without even modifying it the dev build magically works again. The error doesn't happen when ./shared-operations/src/workflow/operatorAccessor.ts:11 is commented: image Or the imported files are removed/commented. (./shared-operations/src/functions/*) The only file that doesn't produce an error is functions/index.ts

Only index.ts -> no error Only impose.ts -> error Only impose.ts with content of index.ts -> error

So the error seems to be dependent on the name of the file for some reason?

Depending on the files present there is another error: image

Thank you for your time!

LaserKaspar avatar Feb 27 '24 21:02 LaserKaspar

I have the same problem. Any solution?

gtalk-renato avatar Apr 20 '24 02:04 gtalk-renato

I have the same problem. Any solution?

How did you cause it? Maybe you could help reproduce it reliability?

LaserKaspar avatar May 07 '24 05:05 LaserKaspar