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

Incompatible lz-string 1.5.0 #69

Open
KrzysztofProgrammer opened this issue Mar 14, 2023 · 5 comments
Open

Incompatible lz-string 1.5.0 #69

KrzysztofProgrammer opened this issue Mar 14, 2023 · 5 comments

Comments

@KrzysztofProgrammer
Copy link

KrzysztofProgrammer commented Mar 14, 2023

At package.json there is

    "lz-string": "^1.4.4"

It will take version 1.5.0. Unfotnatelly this version is not compatible.

After all we have error:

Error: node_modules/secure-ls/dist/secure-ls.d.ts:24:24 - error TS2694: Namespace '".....node_modules/secure-ls/node_modules/lz-string/typings/lz-string"' has no exported member 'LZStringStatic'.

24     LZString: LZString.LZStringStatic;

If I force in my project "lz-string": "1.4.4" , version 1.5.0 will appear inside node_modules/secure-ls/node_modules.
There is no nice workaround with this, but only to delete this internal node_modules.

Please change dependencies to

    "lz-string": "1.4.4"
@elvispdosreis
Copy link

elvispdosreis commented Mar 22, 2023

fixed "lz-string": "1.4.4" incompatible lz-string 1.4.5

@masasi
Copy link

masasi commented Mar 25, 2023

At package.json there is

    "lz-string": "^1.4.4"

It will take version 1.5.0. Unfotnatelly this version is not compatible.

After all we have error:

Error: node_modules/secure-ls/dist/secure-ls.d.ts:24:24 - error TS2694: Namespace '".....node_modules/secure-ls/node_modules/lz-string/typings/lz-string"' has no exported member 'LZStringStatic'.

24     LZString: LZString.LZStringStatic;

If I force in my project "lz-string": "1.4.4" , version 1.5.0 will appear inside node_modules/secure-ls/node_modules. There is no nice workaround with this, but only to delete this internal node_modules.

Please change dependencies to

    "lz-string": "1.4.4"

I am experiencing the same problem!? Do I need to force it to npm i lz-string@1.4.4

@KrzysztofProgrammer
Copy link
Author

KrzysztofProgrammer commented Mar 25, 2023

If I force in my project "lz-string": "1.4.4" , version 1.5.0 will appear inside node_modules/secure-ls/node_modules. There is no nice workaround with this, but only to delete this internal node_modules.
Please change dependencies to

    "lz-string": "1.4.4"

I am experiencing the same problem!? Do I need to force it to npm i lz-string@1.4.4

Workaround:

  1. place in project dependencies at package.json
    "lz-string": "1.4.4",
  1. install packages
npm i
  1. remove from node_modules/secure-ls place where node install 1.5.0 version
rm -fr node_modules/secure-ls/node_modules

@derekmcloughlin
Copy link

Hi, I'm experiencing the same problem. What is LZStringStatic? I don't see any reference to it in the lz-string project.

I've put in "lz-string": "1.4.4" into the overrides section of my package.json, and I had to provide a type definition file for TypeScript to declare the module, but I'm still getting the error:

Namespace '"lz-string"' has no exported member 'LZStringStatic'.

Is it possible to alias LZStringStatic so something that it knows about?

@derekmcloughlin
Copy link

I got around the problem by installing @types/lz-string (1.3.34) and copying the @types/lz-string/index.d.ts contents to my src/@types/lz-string.d.ts

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

No branches or pull requests

4 participants