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
Error on fresh usage of template: A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.
#106
Open
kentbull opened this issue
Aug 14, 2024
· 1 comment
A fresh usage of the project fails on pnpm build and will not compile.
Description
On an OSX box with Node 22.6.0 a pnpm build from a fresh copy of the template fails with the following error:
src/lib/utils.ts:13:1 - error TS1287: A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.
Screenshot
A fresh usage of the project fails on
pnpm build
and will not compile.Description
On an OSX box with Node 22.6.0 a
pnpm build
from a fresh copy of the template fails with the following error:Reproduction Steps/Repo Link
gh repo create mylib --template jasonkuhrt/template-typescript-lib --clone --public && cd mylib && pnpm install && pnpm bootstrap
pnpm build
The text was updated successfully, but these errors were encountered: