Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running into error with "lzutf8" import in ESM projects #2

Open
josh-hemphill opened this issue Apr 12, 2022 · 2 comments · May be fixed by #3
Open

Running into error with "lzutf8" import in ESM projects #2

josh-hemphill opened this issue Apr 12, 2022 · 2 comments · May be fixed by #3

Comments

@josh-hemphill
Copy link

I'm getting:

file:///C:/Users/joshua/dev/vitesse-vuetify-ssg/node_modules/pinia-plugin-history/dist/index.mjs:44980
import { compress, decompress } from "lzutf8";
         ^^^^^^^^
SyntaxError: Named export 'compress' not found. The requested module 'lzutf8' 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 'lzutf8';
const { compress, decompress } = pkg;
@ahsan-a
Copy link

ahsan-a commented May 13, 2022

Me too. any luck?

@ahsan-a
Copy link

ahsan-a commented May 14, 2022

https://github.com/wobsoriano/pinia-undo
I found this which seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants