yarn dev fails: "exports is not defined" in a Quatrain package #9

Open
opened 2026-11-15 18:22:09 +00:00 by claude-bot · 0 comments
Member

On develop (ad99a3e), after a plain yarn install, yarn dev starts but every page answers 500:

[ERROR] exports is not defined
  at node_modules/@quatrain/config/dist/index.js:4:23

astro.config.mjs lists /@quatrain\/.*/ in vite.ssr.noExternal, so Vite processes the CommonJS dist of those packages as ES modules in development. yarn build followed by node dist/server/entry.mjs works.

The development server presumably works with USE_LOCAL_CORE set and the Core sources checked out next to this repository, which a new contributor does not have.

Expected: yarn dev works from the published packages.

On `develop` (`ad99a3e`), after a plain `yarn install`, `yarn dev` starts but every page answers 500: ``` [ERROR] exports is not defined at node_modules/@quatrain/config/dist/index.js:4:23 ``` `astro.config.mjs` lists `/@quatrain\/.*/` in `vite.ssr.noExternal`, so Vite processes the CommonJS `dist` of those packages as ES modules in development. `yarn build` followed by `node dist/server/entry.mjs` works. The development server presumably works with `USE_LOCAL_CORE` set and the Core sources checked out next to this repository, which a new contributor does not have. Expected: `yarn dev` works from the published packages.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
modaka/studio#9
No description provided.