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
In v0.3.5 and greater, using a subpath export from a monorepo package that points to a .ts file fails with the following error:
node:internal/modules/esm/get_format:160
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, filepath);
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/brendonovich/github.com/mattrax/mattrax/apps/forge/app.config.timestamp_1710758212592.ts
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:160:9)
at defaultGetFormat (node:internal/modules/esm/get_format:203:36)
at defaultLoad (node:internal/modules/esm/load:143:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:409:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:291:45)
at async link (node:internal/modules/esm/module_job:76:21) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
I expect this is because 0.3.5 changed the loading of app.config.ts from using a dynamic import() to dedicated bundling with esbuild.
Here's a repro of the error occurring. Downgrading vinxi to =0.3.4 and running pnpm install results in the config loading properly.
The text was updated successfully, but these errors were encountered:
In v0.3.5 and greater, using a subpath export from a monorepo package that points to a
.ts
file fails with the following error:I expect this is because 0.3.5 changed the loading of
app.config.ts
from using a dynamicimport()
to dedicated bundling with esbuild.Here's a repro of the error occurring. Downgrading vinxi to
=0.3.4
and runningpnpm install
results in the config loading properly.The text was updated successfully, but these errors were encountered: