Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,我在运行你的example报如下错误。 #14

Open
gistmap opened this issue Nov 12, 2017 · 2 comments
Open

你好,我在运行你的example报如下错误。 #14

gistmap opened this issue Nov 12, 2017 · 2 comments

Comments

@gistmap
Copy link

gistmap commented Nov 12, 2017

在执行完下3个指令结束后仍然报错,不过错误好像和之前的不一样了。

  • cnpm install style-loader --save-dev
  • cnpm install css-loader --save-dev
  • cnpm install file-loader --save-dev

Failed to compile.
./src/main.js
Module not found: Error: Can't resolve 'element-ui/lib/theme-default/index.css' in > > >'E:\vueproject\vue0\src'
@ ./src/main.js 6:0-48
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

@showonne
Copy link
Owner

@gistmap 这个项目里最开始依赖了element1.x的组件库,版本没锁死的话现在可能是下载了2.x版本,可以根据element-ui的文档稍微改下配置就好了,我有时间再更新下。

@mxl530268618
Copy link

npm run build 生成的dist 文件直接放到把dist下面的所有文件,包括static文件夹 和 index.html 直接扔到 spring boot项目中resources的static文件夹中 启动没有显示和npm run dev 一样的页面

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants