wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.16k stars 106 forks source link

Can't resolve './cjs/particles' for version 3.4.1 #162

Closed mafiusu closed 3 years ago

mafiusu commented 3 years ago

I recently updated the package to version 3.4.1 and found an error.

In index.js at the first line for ReactParticles there is a require to a non-existent path ./cjs/particles/

const ReactParticles = require('./cjs/particles');
for (let key in ReactParticles) {
    ReactParticles.default[key] = ReactParticles[key];
}
module.exports = ReactParticles.default;
matteobruni commented 3 years ago

The cjs folder is created after the package build, the npm package has it. If you have downloaded the sources you need to build it first.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.