Skip to content

cannot resolve module 'style' #222

@silent-tan

Description

@silent-tan

after init, I import a css in the main.js

// import base css
import './less/materialize.css';

but make error:

ERROR in ./src/main.js
Module not found: Error: Cannot resolve module 'style' in /home/farzer/Documents/git-project/bolecity/src
 @ ./src/main.js 15:0-33

and following is my devDependencies:

├── autoprefixer@6.5.1
├── babel-core@6.18.2
├── babel-eslint@7.1.0
├── babel-loader@6.2.7
├── babel-plugin-transform-runtime@6.15.0
├── babel-preset-es2015@6.18.0
├── babel-preset-stage-2@6.18.0
├── babel-register@6.18.0
├── chalk@1.1.3
├── connect-history-api-fallback@1.3.0
├── css-loader@0.25.0
├── eslint@3.9.1
├── eslint-config-airbnb-base@8.0.0
├── eslint-friendly-formatter@2.0.6
├── eslint-import-resolver-webpack@0.6.0
├── eslint-loader@1.6.1
├── eslint-plugin-html@1.5.5
├── eslint-plugin-import@1.16.0
├── eventsource-polyfill@0.9.6
├── express@4.14.0
├── extract-text-webpack-plugin@1.0.1
├── fastclick@1.0.6
├── file-loader@0.9.0
├── function-bind@1.1.0
├── html-webpack-plugin@2.24.1
├── http-proxy-middleware@0.17.2
├── json-loader@0.5.4
├── less@2.7.1
├── less-loader@2.2.3
├── node-pre-gyp@0.6.31 extraneous
├── opn@4.0.2
├── ora@0.3.0
├── postcss-loader@1.1.0
├── semver@5.3.0
├── shelljs@0.7.5
├── url-loader@0.5.7
├── vue@2.0.3
├── vue-loader@9.7.0
├── vue-router@2.0.1
├── vue-style-loader@1.0.0
├── vuex@2.0.0
├── webpack@1.13.3
├── webpack-dev-middleware@1.8.4
├── webpack-hot-middleware@2.13.1
└── webpack-merge@0.14.1

I don not change the webpack config

thanks for all help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions