Skip to content

Conversation

AdamMerrifield
Copy link
Contributor

@AdamMerrifield AdamMerrifield commented Nov 11, 2023

vue-final-modal fails to import during SSR because the module is seen as a commonjs module and not an ES module.

More information here:
https://nodejs.org/api/esm.html#resolution-algorithm

Relevant section:
Screenshot 2023-11-11 at 3 09 21 PM

Here is a minimum example.
https://stackblitz.com/edit/github-4qeonz?file=README.md

In this example pnpm dev functions fine, but pnpm build fails
Screenshot 2023-11-11 at 3 09 03 PM

fixes #404
fixes #326
fixes #365

@hunterliu1003 hunterliu1003 self-assigned this Nov 29, 2023
@hunterliu1003 hunterliu1003 added the v4.5 v4.5 label Nov 29, 2023
@hunterliu1003 hunterliu1003 changed the base branch from master to feat/4.5 November 30, 2023 03:43
@hunterliu1003 hunterliu1003 merged commit cea9207 into vue-final:feat/4.5 Dec 7, 2023
@AdamMerrifield AdamMerrifield deleted the rename-module branch February 27, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4.5 v4.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The requested module is a CommonJS module
2 participants