Wierd framewrk error

..
10 Replies
Alex
Alex2y ago
How exactly did you install things? Because @sapphire/shapeshift is compiled on NPM, but it looks like it's not in your instance. https://unpkg.com/browse/@sapphire/[email protected]/
UNPKG - @sapphire/shapeshift
The CDN for @sapphire/shapeshift
Morning 🍁
Morning 🍁2y ago
i only installed discord.js which has sapphire as its dependecny
Alex
Alex2y ago
I see.. it shouldn't happen. Did you try uninstalling and reinstalling it?
Morning 🍁
Morning 🍁2y ago
yes. uninstalled whole node_modules and reinstalled btw im using pnpm
Alex
Alex2y ago
I can see that, yes, but it still doesn't really make sense because the src directory is not published to NPM. I'll ping @kyra and @Favna, they usually know the solution for dependencies going wrong
Morning 🍁
Morning 🍁2y ago
greenTick
Favna
Favna2y ago
No idea what pnpm did for you there but try setting https://pnpm.io/npmrc#public-hoist-pattern to "@sapphire/*"
.npmrc | pnpm
pnpm gets its configuration from the command line, environment variables, and
Favna
Favna2y ago
Coz src shouldn't be in node_modules ever. That implies it downloaded from GH instead of a CDN like npm https://cdn.jsdelivr.net/npm/@sapphire/[email protected]/
@sapphire/shapeshift CDN by jsDelivr - A free, fast, and reliable O...
@sapphire/shapeshift CDN by jsDelivr - A free, fast, and reliable Open Source CDN for npm and GitHub
Favna
Favna2y ago
And DJS doesn't depend on the GH repo either Your package manager definitely did something weird
Morning 🍁
Morning 🍁2y ago
i believe so yes it was pkg manager err tysm
Want results from more Discord servers?
Add your server