You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
danielpza
changed the title
Error using namespaces UnsupportedSyntaxError: namespace must have a "ModuleBlock" body.
Error using nested namespaces "UnsupportedSyntaxError: namespace must have a "ModuleBlock" body."
Aug 7, 2024
Problem
I get this error when trying to compile the following with pkgroll:
UnsupportedSyntaxError: namespace must have a "ModuleBlock" body.
Seems related to Swatinem/rollup-plugin-dts#246
Expected behavior
bundles it as is, same output as typescript compiler
Minimal reproduction URL
https://github.com/danielpza/pkgroll-namespace-issue
See https://github.com/danielpza/pkgroll-namespace-issue/actions/runs/10288771843/job/28474986787
Version
2.4.2
Node.js version
22.4.1
Package manager
npm
Operating system
Linux
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: