Closed orsi closed 3 years ago
What version are you using? That was fixed in 2.0.1
Just recently installed it at 2.0.1:
Ah, you are putting gatsby-config.ts
right next to gatsby-config.js
. It’s finding the .js
file, because node automatically prioritizes them.
I suppose in the transpiler I could use the other module resolver, instead of require.resolve
… that will make it prioritize .ts
I’ve also got a feature nearly done that will include a CLI, so no .js
files needed at all.
Ahh, yes. Kind of thought that might be the case which is why I added the .ts.
@orsi care to try gatsby-plugin-ts-config@2.0.2-rc.1
?
Did some tests, seems to work as expected. Published in gatsby-plugin-ts-config@2.0.2
Updated and works on my end now without the explicit .ts extension. Thanks!
As per the readme, I was under the assumption I could just use the filename without .ts ending:
However, I get errors relating specifically to the gatsby-theme-i18n plugin:
Those errors are resolved when I specify .ts explicitly:
No errors: