Comments (2)
This is because of transitive dependencies, if a dependency depends on package with a different version than what's in your package.json it will create a node_modules
under the dependency, instanceof
will not work with two different packages installed that try to use a class from it, it will reference the wrong one.
There is a temporary fix, using this package to force npm to remove transitive dependencies based on what ones you specify, if you use Yarn you will not need to install this, refer to the documentation for more.
A official fix would likely to make erela.js a development dependency so it will not install it along the others and use root node_modules
, I will be fixing this soon.
from erela.js.
@NorteX-dev Can you provide the following information relevant to your issue above? I just tried using the latest versions below and failed to reproduce the issue.
System OS/Distro VersionNode.js VersionYarn and/or NPM versionsErela.js VersionErela.js-Spotify version
You can disregard the question above. The official fix has been implemented at MenuDocs/erela.js-spotify@5b17503. If you update erela.js-spotify
, these changes should be reflected.
Any future plugins should have erela.js
as a development dependency so the root node_modules
(the one which has erela.js
installed) is used.
I will be marking this issue as closed. If any new issues arise, feel free to open a new issue.
from erela.js.
Related Issues (20)
- Feature Request: ytmsearch
- Weird Queue Problem HOT 4
- defaultSearchPlatform does not work HOT 3
- I donβt understand anything anymore
- Broken with nodejs 18.6 HOT 2
- updateVoiceState on the client issue HOT 2
- Error: Cannot read properties of undefined (reading 'track')
- Unexpected token in JSON at position 0 HOT 2
- Add queue/player events
- Cannot read properties of undefined (reading 'map') : Manager.js:155:36 HOT 1
- Update HOT 6
- Init bug HOT 8
- petitio causing a lot of errors HOT 25
- petitio: unexpected token in json HOT 4
- Plugin Issues HOT 1
- Unexpected token in JSON at position 0 HOT 3
- SyntaxError: Unexpected token in JSON at position 0 on Linux. HOT 1
- Some plugins does not work after latest update HOT 2
- Cannot read properties of undefined (reading 'map'): Manager.js:161:36
- TypeError: finalQuery.match is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erela.js.