Bug Report #14

Closed
opened 2024-04-26 22:20:07 +00:00 by annymosse · 4 comments
annymosse commented 2024-04-26 22:20:07 +00:00

Info

  • Operating System:
  • nvim --version: 0.9.5
  • Node package manager:
  • node --version: 20.12.2
  • npm --version: 10.5.0
  • pnpm --version: 9.0.6

Configuration

require('import-cost').setup {
    -- as default config
}

Description

the calculation always return 0.0b (gzipped: 0.0b) for all packages (ex: loadash, solid,...) even with huge packages or node std packages.

### Info - Operating System: - `nvim --version`: 0.9.5 - Node package manager: - `node --version`: 20.12.2 - `npm --version`: 10.5.0 - `pnpm --version`: 9.0.6 ### Configuration ```lua require('import-cost').setup { -- as default config } ``` ### Description the calculation always return 0.0b (gzipped: 0.0b) for all packages (ex: loadash, solid,...) even with huge packages or node std packages.
barrettruth commented 2024-04-26 22:43:18 +00:00

which package manager are you using?

which package manager are you using?
annymosse commented 2024-04-28 16:22:41 +00:00

Hi @barrett-ruth thank you for this missing plugin in the lazyVim packages, and sorry for the delay.

which package manager are you using?

since import-cost depends on the flat structure & pnpm doesn't use --shamefull-hoist by default anymore, I had to go into the plugin directory and install the packages manually using pnpm --shamefully-hoist and tried it without success, thus I re-install the packages again using npm and I had same issue.

Hi @barrett-ruth thank you for this missing plugin in the `lazyVim` packages, and sorry for the delay. > which package manager are you using? since `import-cost` depends on the flat structure & `pnpm` doesn't use `--shamefull-hoist` by default anymore, I had to go into the plugin directory and install the packages manually using `pnpm --shamefully-hoist` and tried it without success, thus I re-install the packages again using `npm` and I had same issue.
barrettruth commented 2024-05-03 21:36:22 +00:00

I just checked again. The plugin does work with npm but not with pnpm because workspaces aren't supported. Try deleting the plugin and reinstalling. I will denote this fact in the readme (I use pnpm myself after all).

I just checked again. The plugin does work with `npm` but not with `pnpm` because workspaces aren't supported. Try deleting the plugin and reinstalling. I will denote this fact in the readme (I use pnpm myself after all).
annymosse commented 2024-05-05 19:23:59 +00:00

I just checked again. The plugin does work with npm but not with pnpm because workspaces aren't supported. Try deleting the plugin and reinstalling. I will denote this fact in the readme (I use pnpm myself after all).

alright, after I used a docker container it works well (without using pnpm), it seems it's a problem in my npm global cache folder, since it worker after deleting it and tried again.

> I just checked again. The plugin does work with `npm` but not with `pnpm` because workspaces aren't supported. Try deleting the plugin and reinstalling. I will denote this fact in the readme (I use pnpm myself after all). alright, after I used a docker container it works well (without using pnpm), it seems it's a problem in my npm global cache folder, since it worker after deleting it and tried again.
Sign in to join this conversation.
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
barrettruth/import-cost.nvim#14
No description provided.