-
-
Notifications
You must be signed in to change notification settings - Fork 255
poi 10 trying to load poi.config.ts as a json file #419
Comments
Looks like the issue is with https://github.com/egoist/use-config/blob/master/src/index.js#L30. @egoist do you want me to open up a ticket there? |
I will fix it in Poi (and update the d.ts file) |
10.1.0 should work. you don't need |
@egoist works, thank you! One other thing I just noticed. It now says |
Good idea, try 10.1.1 Doc has been updated too https://poi.js.org/guide/transforms.html#typescript |
@egoist you are truly a legend! |
@egoist looks like there's one caveat, I don't think it's picking up the tsconfig.json. I created https://glitch.com/edit/#!/poi-typescript to play around with. |
ah, I think it's actually the |
looks like the error above is to do with TypeStrong/ts-loader#726 (comment). Upgrading to
|
for |
@egoist even without using |
try updating |
looks like it's still an issue https://glitch.com/edit/#!/poi-typescript |
Not sure what's going on there, it works fine locally. |
I have the same issue locally as on glitch, I tried a clean install too. |
Hopefully fixed now. |
👌 now, I've updated https://github.com/poi-examples/vue-ts-example too |
@egoist works like a charm now -- thank you again! |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
poi is trying to parse
poi.config.ts
as json.If the current behavior is a bug, please provide the steps to reproduce.
https://gist.github.com/cj/3465de10e69d7eaf2b171a9b73d27480
npx poi --require ts-node/register --config poi.config.ts
What is the expected behavior?
It should run poi :)
Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System.
poi: 10.0.3
The text was updated successfully, but these errors were encountered: