Comments (8)
For me it was this that solved the "module not found" error: #44 + import SweetModal from 'sweet-modal-vue/src/plugin.js'
(src/
is missing in the docs)
from sweet-modal-vue.
All the solutions noted in here sound as though you are allowing this library to be built via your app's webpack config. That seems like a dangerous path to me. What if the library opts to switch from Sass to some other option like Less down the road? I believe you'd have to update your config to setup loaders for it. Please correct me if I am wrong, but it seems to me that something needs to change in the library so that your webpack config does not have an impact on importing the library.
from sweet-modal-vue.
@daverogers I solved adding these lines in my webpack configuration
from sweet-modal-vue.
Confirmed successful build after adding this line to webpack:
extensions: ['*', '.js', '.vue'],
Cheers 🍻
from sweet-modal-vue.
I'm running into the same error. I tried installing both globally and on a single component (import { SweetModal, SweetModalTab } from 'sweet-modal-vue'
)
from sweet-modal-vue.
I had almost the same error after installing it globally.
This dependency was not found:
sweet-modal-vue/plugin.js in ./src/main.js
To install it, you can run: npm install --save sweet-modal-vue/plugin.js
tried adding /src to the import path ( 'sweet-modal-vue/src/plugin.js' ) and it now works.
thanks!
(edit: typo)
from sweet-modal-vue.
after working perfectly for several months npm now gives this error when running npm watch-poll:
Module not found: Error: Can't resolve 'sweet-modal-vue/src/plugin.js'
if i remove /src/plugin.js we are back to the error mentioned above.
anyone?
--- EDIT
seems like the module actually was removed after re-adding it with npm it now works like before.
from sweet-modal-vue.
For me it was this that solved the "module not found" error: #44 +
import SweetModal from 'sweet-modal-vue/src/plugin.js'
(src/
is missing in the docs)
Thanks to this mention, in my case, it solved almost same by import { SweetModal , SweetModalTab } from 'sweet-modal-vue/dist/sweet-modal'
from sweet-modal-vue.
Related Issues (20)
- Modal content is blurred HOT 1
- How to encapsulate a vue page into a component to call
- delete
- get current tab
- Failed to resolve loader: sass-loader
- When you click on modal and drag outside of it, the modal closes
- How do I destroy the component when the modal is closed? HOT 1
- TypeError: Cannot read properties of undefined (reading 'filter')
- Error with buttons on phones
- Vue3 Issue
- How to set the height of modal, just like the width? HOT 1
- Support IE 10, 11 HOT 1
- Modal CSS problem in mobile
- How to make long modals scroll vertically?
- Is it possible to open inside a rendered list? HOT 4
- How close modal in our methods?
- Global Installation HOT 5
- Attach to body parameter
- Pressing ESC closes all modals in a nested modal HOT 1
- Option for enabling escape key with blocking HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sweet-modal-vue.