Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

typescript support #48

Closed
xenoterracide opened this issue Apr 19, 2020 · 1 comment
Closed

typescript support #48

xenoterracide opened this issue Apr 19, 2020 · 1 comment

Comments

@xenoterracide
Copy link

xenoterracide commented Apr 19, 2020

I honestly I'm not actually even certain this is possible... at least without typescript supporting json5 (as a file extension?)

ERROR in /Users/calebcushing/IdeaProjects/warmeister/src/main.ts
./src/main.ts
[tsl] ERROR in /Users/calebcushing/IdeaProjects/warmeister/src/main.ts(6,16)
      TS2307: Cannot find module 'json5-loader!./locales/en/translations.json'.
@alexander-akait
Copy link
Member

Sorry the problem not related to json5-loader, you need setup ts to understand loader inline syntax, I can't find any information about it in ts docs. My recommendation is setup loader in the configuration file. Sorry I can't do here something.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants