You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main field is a module ID that is the primary entry point to your program. That is, if your package is named foo, and a user installs it, and then does require("foo"), then your main module’s exports object will be returned.
The build directory is published in the npm repository. You can check the .npmignore file and make sure that it does not include the build directory path.
If you need the build directory, you can build the package using the npm run build command.
If use "main": "src/index.js", then when we import the package into the target file from node_modules, the dev version will be used.
package json :
...
"main": "build/index.js",
...
but there is no build folder, need to manually change it to
"main": "src/index.js",
The text was updated successfully, but these errors were encountered: