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

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

Comments

@kentbull
Copy link

Screenshot

A fresh usage of the project fails on pnpm build and will not compile.

image

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.

Reproduction Steps/Repo Link

  1. gh repo create mylib --template jasonkuhrt/template-typescript-lib --clone --public && cd mylib && pnpm install && pnpm bootstrap
  2. pnpm build
@jasonkuhrt
Copy link
Owner

Hey @kentbull, I somehow missed this issue. Thanks for reporting. I'll look into it.

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

2 participants