-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
The esm build command does not output .mjs files. This causes build issues in projects where the package.json type is module as builders for these projects then expect the esm imports to be a .mjs file.
This is env specific, but this is the type of error I am receiving as an example:
[vite] (ssr) Error when evaluating SSR module /src/routes/monitoring/metrics/+page.svelte: [vite] Named export 'isQueryValid' not found. The requested module '@jetstreamapp/soql-parser-js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@jetstreamapp/soql-parser-js';
const {parseQuery, composeQuery, isQueryValid} = pkg;
Switching to the suggested fix in this error message does not actually resolve the issue.
Metadata
Metadata
Assignees
Labels
No labels