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
to build the project and obtain my types declaration files, I got these errors:
> tsc --emitDeclarationOnly --declaration --declarationMap
index.ts:3:14 - error TS4023: Exported variable 'projectCreateCommand' has or is using name 'Renderers' from external module "/Users/jgoux/Documents/code/cleye-repro/node_modules/.pnpm/cleye@1.2.0/node_modules/cleye/dist/index" but cannot be named.
3 export const projectCreateCommand = command(
~~~~~~~~~~~~~~~~~~~~
index.ts:3:14 - error TS4023: Exported variable 'projectCreateCommand' has or is using name 'parsedType' from external module "/Users/jgoux/Documents/code/cleye-repro/node_modules/.pnpm/cleye@1.2.0/node_modules/cleye/dist/index" but cannot be named.
3 export const projectCreateCommand = command(
~~~~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: index.ts:3
I've found these corresponding issues on TypeScript repository:
Seems like the internals of the library have to be exposed in order to TypeScript to see them somehow. 🤔
I played a little with your generated index.d.ts and I was able to fix the Renderers error by exposing the type. But for the parsedType, exposing the variable didn't fix it unfortunatly.
Bug description
When running the command:
to build the project and obtain my types declaration files, I got these errors:
I've found these corresponding issues on TypeScript repository:
Seems like the internals of the library have to be exposed in order to TypeScript to see them somehow. 🤔
I played a little with your generated index.d.ts and I was able to fix the
Renderers
error by exposing the type. But for theparsedType
, exposing the variable didn't fix it unfortunatly.Reproduction
I've set up a repository with a minimal reproduction: https://github.com/jgoux/cleye-repro
Node.js package manager
pnpm
Environment
System: OS: macOS 12.4 CPU: (10) arm64 Apple M1 Pro Memory: 141.14 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.0 - /opt/homebrew/bin/node npm: 8.5.5 - /opt/homebrew/bin/npm npmPackages: cleye: 1.2.0 => 1.2.0
Can you contribute a fix?
The text was updated successfully, but these errors were encountered: