Using self made npm package in react. Failed to compile
问题 I followed https://zellwk.com/blog/publish-to-npm/ to create my custom npm package (https://www.npmjs.com/package/demo-to-publish). The folder structure of my custom package is as follows: src -> index.js node_modules List item Lable.js package.json webpack.config.js Content of my package.json is as follows: { "name": "demo-to-publish", "version": "1.0.5", "description": "testing publishing to npm", "main": "./src/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1",