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
vite-plugin-dts version: 1.6.3 vite version: 3.1.4
package.json:
{
"name" : "my-lib",
"type": "module",
...
}
vite.config.ts:
// importsexportdefaultdefineConfig({// other configsplugins: [dts({ config })]})
An error:
failed to load config from /Users/furthur/Projects/anadea/next-lib/vite.config.ts
error during build:
ReferenceError: __filename is not defined in ES module scope
at isFileSystemCaseSensitive (file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11047:46)
at getNodeSystem (file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:10812:46)
at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11367:20
at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11374:8
at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11389:4
at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:172321:3
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadConfigFromBundledFile (file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite/dist/node/chunks/dep-6b3a5aff.js:63495:21)
The text was updated successfully, but these errors were encountered:
Given
vite-plugin-dts version: 1.6.3
vite version: 3.1.4
package.json:
vite.config.ts:
An error:
failed to load config from /Users/furthur/Projects/anadea/next-lib/vite.config.ts error during build: ReferenceError: __filename is not defined in ES module scope at isFileSystemCaseSensitive (file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11047:46) at getNodeSystem (file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:10812:46) at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11367:20 at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11374:8 at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:11389:4 at file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite-plugin-dts/dist/index.mjs:172321:3 at ModuleJob.run (node:internal/modules/esm/module_job:198:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:385:24) at async loadConfigFromBundledFile (file:///Users/furthur/Projects/anadea/next-lib/node_modules/vite/dist/node/chunks/dep-6b3a5aff.js:63495:21)
The text was updated successfully, but these errors were encountered: