将module从 node_modules 导入 React 应用程序的正确方法是什么?
当我做: import MyModule from '../node_modules/my_module'
我得到: Module not found: You attempted to import ../node_modules/my_module which falls outside of the project src/ directory. Relative imports outside of src/ are not supported. You can either move it inside src/, or add a symlink to it from project's node_modules/
不要告诉我我应该每次都将 node_modules 复制到 src/ 中?
注意:我在没有符号链接的 Windows 上。