Comments (9)
你好,我本地生产了一下项目,然后把你这个加进去,一开始是路径import错了,然后我手动 改路径,然后下面css就有问题,注释掉就可以
Uncaught Error: Module parse failed: E:\simple\vue-toast-master\lib\toast.css Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
| .lx-toast{
| position: fixed;
| bottom:100px;
at eval (eval at (build.js:1355), :1:7)
at Object. (build.js:1355)
at webpack_require (build.js:660)
at fn (build.js:84)
at eval (eval at (build.js:972), :5:90)
at Object. (build.js:972)
at webpack_require (build.js:660)
at fn (build.js:84)
at Object. (build.js:1342)
at webpack_require (build.js:660)
from vue-toast.
@Faithree 你引入css的代码给我看看
from vue-toast.
import '../vue-toast-master/lib/toast.css';
import Toast from'../vue-toast-master/lib/index';
Vue.use(Toast);
from vue-toast.
因为npm install vue-toast下载的是一个外国人的项目,所以我就手动下载,然后放到跟目录下
from vue-toast.
你的项目是用vue-cli生成的吗?
from vue-toast.
是的
from vue-toast.
那应该已经有配置好解析css的loader啊,怎么你报错信息还提示需要引入loader。
你方便的话可以把文件夹发给我我调试一下吗?
from vue-toast.
你试试直接cli生成一个,你QQ多少?
from vue-toast.
2981207131
from vue-toast.
Related Issues (20)
- 不支持在拦截器中使用? HOT 3
- 在 Toast 未关闭之前,再次调用不生效 HOT 3
- iOS9.3.5还有iOS10显示toast的时候,会先出现再向左移动一段距离 HOT 2
- show-toast 500毫秒的 动画 会导致 开始 不在中心 很别扭 HOT 1
- 动画生成工具和$loading手动删除的疑问 HOT 2
- runtime-only 无法使用 template属性 HOT 11
- this.$toast.center('center')调用没反应, HOT 1
- 是否可以支持全局调用 HOT 1
- 能否提供.d.ts文件 HOT 3
- 是否可以考虑,在loading的时候,加入不允许点击页面的功能?!
- 调用this.$toast.top('top')时,小程序报错 HOT 2
- 能否单独设置的时候也可以自定义配置,现在只能全局配置。
- 请问怎么在入口文件停止loading? HOT 1
- Array.apply(null, {length: 12}) 在Chrome 17版本上会报错
- Demo WebPage blocked
- 不挂载到vue上如何调用
- 文字过长时不会换行,会自动省略文字
- 文字太长会显示省略号,但是我希望是全部显示,有参数可以配置吗? HOT 5
- 'lx-word-wrap' is a new attribute ?
- loading框特别大
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 vue-toast.