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
Hi there, I'm trying to setup ts-node with HTML files imported as a string like this: import template from "./component.html";
Just for context: my application is built using webpack, which has html-loader plugin, but when I try to setup unit tests (with mocha), I can't use that loader, so I get this error: error TS2307: Cannot find module './component.html' or its corresponding type declarations.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, I'm trying to setup
ts-node
with HTML files imported as a string like this:import template from "./component.html";
Just for context: my application is built using webpack, which has
html-loader
plugin, but when I try to setup unit tests (with mocha), I can't use that loader, so I get this error:error TS2307: Cannot find module './component.html' or its corresponding type declarations.
Any help greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions