Giter Club home page Giter Club logo

Comments (9)

Faithree avatar Faithree commented on May 27, 2024

你好,我本地生产了一下项目,然后把你这个加进去,一开始是路径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.

lin-xin avatar lin-xin commented on May 27, 2024

@Faithree 你引入css的代码给我看看

from vue-toast.

Faithree avatar Faithree commented on May 27, 2024

import '../vue-toast-master/lib/toast.css';
import Toast from'../vue-toast-master/lib/index';
Vue.use(Toast);

from vue-toast.

Faithree avatar Faithree commented on May 27, 2024

因为npm install vue-toast下载的是一个外国人的项目,所以我就手动下载,然后放到跟目录下

from vue-toast.

lin-xin avatar lin-xin commented on May 27, 2024

你的项目是用vue-cli生成的吗?

from vue-toast.

Faithree avatar Faithree commented on May 27, 2024

是的

from vue-toast.

lin-xin avatar lin-xin commented on May 27, 2024

那应该已经有配置好解析css的loader啊,怎么你报错信息还提示需要引入loader。
你方便的话可以把文件夹发给我我调试一下吗?

from vue-toast.

Faithree avatar Faithree commented on May 27, 2024

你试试直接cli生成一个,你QQ多少?

from vue-toast.

lin-xin avatar lin-xin commented on May 27, 2024

2981207131

from vue-toast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.