Home Error: Cannot find module "jquery-slotmachine"
Reply: 0

Error: Cannot find module "jquery-slotmachine"

user2529
1#
user2529 Published in June 19, 2018, 2:43 pm

I'm trying to use this 'jquery-slotmachine', but I get the error below. I read a lot documentation and try few things.

I've been able to import jquery and use it.

Here are the steps I did:

$ cd my-ionic-project
$ npm install jquery --save
$ npm install jquery-slotmachine --save
$ cd src/home
$ vim home.ts
#home.ts
...
~ import * as $ from 'jquery';
~ import * as jslot from 'jquery-slotmachine';
~ console.dir($);
~ console.dir(jslot);
...

Then, I get this error:

ERROR Error: Uncaught (in promise): Error: Cannot find module "jquery-slotmachine"
[358]@http://localhost:8100/build/0.js:53:7
__webpack_require__@http://localhost:8100/build/vendor.js:55:12
[326]@http://localhost:8100/build/0.js:11:71
__webpack_require__@http://localhost:8100/build/vendor.js:55:12
webpackAsyncContext/<@http://localhost:8100/build/main.js:154:10
F</l</t.prototype.invoke@http://localhost:8100/build/polyfills.js:3:14974
onInvoke@http://localhost:8100/build/vendor.js:5123:24
F</l</t.prototype.invoke@http://localhost:8100/build/polyfills.js:3:14901
F</c</r.prototype.run@http://localhost:8100/build/polyfills.js:3:10124
f/<@http://localhost:8100/build/polyfills.js:3:20240
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15649
onInvokeTask@http://localhost:8100/build/vendor.js:5114:24
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15562
F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10815
o@http://localhost:8100/build/polyfills.js:3:7887
F</h</e.invokeTask@http://localhost:8100/build/polyfills.js:3:16823
p@http://localhost:8100/build/polyfills.js:2:27646
v@http://localhost:8100/build/polyfills.js:2:27893

Stack trace:
c@http://localhost:8100/build/polyfills.js:3:19752
c@http://localhost:8100/build/polyfills.js:3:19461
f/<@http://localhost:8100/build/polyfills.js:3:20233
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15649
onInvokeTask@http://localhost:8100/build/vendor.js:5114:24
F</l</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:15562
F</c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:10815
o@http://localhost:8100/build/polyfills.js:3:7887
F</h</e.invokeTask@http://localhost:8100/build/polyfills.js:3:16823
p@http://localhost:8100/build/polyfills.js:2:27646
v@http://localhost:8100/build/polyfills.js:2:27893
 core.js:1448
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.352516 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO