Wierd framewrk error

..
10 Replies
Alex
Alex3y 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
MorningOP3y ago
i only installed discord.js which has sapphire as its dependecny
Alex
Alex3y ago
I see.. it shouldn't happen. Did you try uninstalling and reinstalling it?
Morning
MorningOP3y ago
yes. uninstalled whole node_modules and reinstalled btw im using pnpm
Alex
Alex3y 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
MorningOP3y ago
greenTick
Favna
Favna3y 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
Favna3y 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
Favna3y ago
And DJS doesn't depend on the GH repo either Your package manager definitely did something weird
Morning
MorningOP3y ago
i believe so yes it was pkg manager err tysm
Want results from more Discord servers?
Add your server