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
Sorry if this is a newbie question.
I'm trying to use stackedCards with
$ yarn add junedchhipa/stacked-cards
yarn add v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ stackedCards@1.0.0
info All dependencies
└─ stackedCards@1.0.0
Done in 7.94s.
and then adding ìmport 'stackedCards'; to my main.js
But webpack complains:
ERROR in ./src/main.js 3:0-22
Module not found: Error: Can't resolve 'stackedCards' in '/home/web/mySite/src'
The repository is inside /home/web/node_modules/stackedCards/...
I suppose I forgot something or did something stupid and it's probably not an issue with this project. Since I couldn't find a solution to this, I hope to find help here.
How's the right way to use stackedCards with webpack and node.js?
EDIT: I also tried to import 'stackedCards/src/stackedCards.js' directly. The webpack error then disappears but then the Browswer complains with Uncaught ReferenceError: stackedCards is not defined
The text was updated successfully, but these errors were encountered:
Sorry if this is a newbie question.
I'm trying to use stackedCards with
and then adding
ìmport 'stackedCards';
to my main.jsBut webpack complains:
The repository is inside /home/web/node_modules/stackedCards/...
I suppose I forgot something or did something stupid and it's probably not an issue with this project. Since I couldn't find a solution to this, I hope to find help here.
How's the right way to use stackedCards with webpack and node.js?
EDIT: I also tried to
import 'stackedCards/src/stackedCards.js'
directly. The webpack error then disappears but then the Browswer complains withUncaught ReferenceError: stackedCards is not defined
The text was updated successfully, but these errors were encountered: