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
my project is based on Typescript and I adopted lots of patterns from the arc-project like the convenient import of components. It works fine using the original .js version of components/index.js but for consistency plus keeping the build chain typescript-centric I would like to convert those few lines of code to TS as well which is actually harder than expected.
I am actually not able to figure out how to properly export the following code as a typescript module.
Never mind - I switched to manual importing each component from their respective source path as using the method via require.context introduced a range of other problems (see #131 ).
So, since I am not using components/index.js anymore, there is no need for a TS-Version.
Hi there,
my project is based on Typescript and I adopted lots of patterns from the arc-project like the convenient import of components. It works fine using the original .js version of components/index.js but for consistency plus keeping the build chain typescript-centric I would like to convert those few lines of code to TS as well which is actually harder than expected.
I am actually not able to figure out how to properly export the following code as a typescript module.
Whatever I try I get TS2306: File '/app/src/components/index.ts' is not a module
Has anyone migrated to Typescript and knows how to properly export the dynamically created module.exports-object?
Thanks
-act
The text was updated successfully, but these errors were encountered: