npm version seems to compiled incorrectly (or: missing dependencies)
See original GitHub issueHello there,
I tried using npm version of bootstrap-sweetalert (1.0.1), but when I require() it I get the following:
Error: Cannot find module './handle-dom' from '/tmp/node_modules/bootstrap-sweetalert/dist'
at /tmp/node_modules/browserify/node_modules/resolve/lib/async.js:55:21
at load (/tmp/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
at onex (/tmp/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
at /tmp/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:82:15)
On the other hand, if I go with “vanilla” sweetalert, I get no such issue.
Any ideas?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Why does npm install say I have unmet dependencies?
The problem could be caused by npm's failure to download all the package due to timed-out or something else. Note: You can also...
Read more >Missing dependencies after running `npm install` a second ...
I'm opening this issue because: npm is crashing. npm is producing an incorrect install. npm is doing something I don't understand.
Read more >Troubleshooting Node.js Deploys
Make sure a Node version is specified. Heroku will output which binaries (ie. node , npm ) are used for each deploy in...
Read more >npm, pnpm, and Yarn | IntelliJ IDEA Documentation
Install all dependencies listed in a package.json file ... In the embedded Terminal ( Alt+F12 ) , type one of the following commands:...
Read more >Error Codes | Yarn - Package Manager
The author of packageA can fix this problem by adding a peer dependency on packagePeer . If relevant, they can use optional peer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t think you can simply
require
the compiled dist file. Have you tried toimport
(ES6 style) thedev/sweetalert.es6.js
file?I tried to
import {SweetAlert} from "bootstrap-sweetalert/dev/sweetalert.es6"
and got the following error:The es6 file contains:
I’m using browserify and babel