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
[ERROR] Could not resolve "ts-node"
node_modules/cosmiconfig-typescript-loader/dist/cjs/index.js:28:29:
28 │ var import_ts_node = require("ts-node");
╵ ~~~~~~~~~
You can mark the path "ts-node" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
That's unexpected behaviour.
The text was updated successfully, but these errors were encountered:
Well, i've found a root cause. It's not related to config loading, it's related to macro import in the code itself. Vite before serve trying to bundle all used pacakges in node_modules. Vite starts analyzing imports and see "@lingui/macro" and starts bundling it. It doesn't know anything about that macro import would be removed from code while transpiling.
Vite project on StackBlitz.
This will show when run
That's unexpected behaviour.
The text was updated successfully, but these errors were encountered: