I'm having issues importing a module not via NPM:
I forked the repo and also tried a local install with no luck, so I tried installing via github.
I've tried both using import as well as require as listed below. Not quite sure why it keeps insisting to look in locally
The file that's having issue is in the utils folder, which is probably why it's searching for react-select there.
import Select from "@react-select/monorepo";
const Select = require("@react-select/monorepo");
What does work (when installed via npm repository):
import Select from "react-select";
Package.json:
"@react-select/monorepo": "github:kckaiwei/react-select#onMultiValueLabelClick",
Getting the following error when running browserify:
Error: Cannot find module '@react-select/monorepo' from '.../src/static/js/react_apps/utils'
at .../node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
at process (.../node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (.../node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (.../node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (.../node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at .../node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqCallback.oncomplete (fs.js:165:21)
Directory structure looks like:
project --- src --- static
|
|--- node_modules --- @react-select --- monorepo