webpro-nl / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
https://knip.dev
ISC License
7.11k stars 180 forks source link

Remix - Unable to load package.json for packages/remix-dev #238

Closed revnandi closed 1 year ago

revnandi commented 1 year ago

Hi!

I'm trying to use knip with Remix but i get this error:

➜  project git:(master) ✗ npx knip
Analyzing workspace (packages/remix-dev)...
Unable to load package.json for packages/remix-dev

This is the knip.jsonc in the root folder I'm using the epic-stack starter if that makes a difference

webpro commented 1 year ago

I'll look into it.

Looks odd at first sight. The issue sounds like a missing or invalid package.json, but that one seems fine.

homburg commented 1 year ago

Hi @revnandi

It sounds like you are working in a repository with directory layout from https://github.com/epicweb-dev/epic-stack

If that's the case you are not using workspaces and shouldn't have a workspaces key in your knip.jsonc

revnandi commented 1 year ago

Hi @revnandi

It sounds like you are working in a repository with directory layout from https://github.com/epicweb-dev/epic-stack

If that's the case you are not using workspaces and shouldn't have a workspaces key in your knip.jsonc

Thank you, it works now.