我正在尝试让Particlejs在React中运行。但这似乎不起作用..因此,我尝试使用react-particles-js。但这给了我这个错误:找不到模块:无法在'C:\ Users \ Amit \ node_modules \中解析'react'粒子js \ lib'
import React, { Component } from 'react';
import ParticleAnimation from 'particles-js';
class Example extends Component {
render () {
return (
<ParticleAnimation />
)
}
}export default Example;
我一直在尝试弄乱导入语句中的文件路径,但到目前为止没有任何效果。感谢您的时间。
尝试再次在您的项目中安装它,
纱线添加反应
要么
npm我反应-保存
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句