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
{{ message }}
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
I'm using auto (pretty cool tool) with .config.ts and I get a crash with following error.
$ /home/hasparus/workspace/theme-ui/node_modules/.bin/auto info
TypeScriptCompileError: Failed to compile TypeScript: Unexpected token 'export'
at Function.TypeScriptCompileError.fromError (/home/hasparus/workspace/theme-ui/node_modules/@endemolshinegroup/cosmiconfig-typescript-loader/src/Errors/TypeScriptCompileError.ts:20:12)
at /home/hasparus/workspace/theme-ui/node_modules/@endemolshinegroup/cosmiconfig-typescript-loader/dist/index.js:21:48
at Generator.next (<anonymous>)
What went wrong?
ts-node/register finds my tsconfig which isn't configured for Node
cosmiconfig-typescript-loader requires the config
ts-node compiles the config successfuly
Node crashes on export — the error is a bit misleading
$ /home/hasparus/workspace/theme-ui/node_modules/.bin/auto info
TypeScriptCompileError: Failed to compile TypeScript: Unexpected token 'export'
at Function.TypeScriptCompileError.fromError (/home/hasparus/workspace/theme-ui/node_modules/@endemolshinegroup/cosmiconfig-typescript-loader/src/Errors/TypeScriptCompileError.ts:20:12)
at /home/hasparus/workspace/theme-ui/node_modules/@endemolshinegroup/cosmiconfig-typescript-loader/dist/index.js:21:48
at Generator.next (<anonymous>)
Description
I'm using auto (pretty cool tool) with
.config.ts
and I get a crash with following error.What went wrong?
ts-node/register
finds my tsconfig which isn't configured for Nodeexport
— the error is a bit misleadingWhat did you expect should have happened?
What was the config you used?
This one, but I'm not sure if it matters
What stacktrace or error messages did you see?
Stack Trace:
Similar or dependent issues:
auto
, but the problem is not on their side.Additional Data
Version of
cosmiconfig-typescript-loader
you're using: 3.0.2Node Version: 14.15.3
Operating System: Pop!_OS 20.04 LTS
The text was updated successfully, but these errors were encountered: