ERROR in ./src/components/sign/components/signin/style.scss
Module build failed: ModuleParseError: Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
| @import "../../../../containers/global/base.scss";
|
|
at doBuild (B:\OSPanel\domains\domain.dev\frontend\node_modules\webpack\lib\NormalModule.js:303:19)
at runLoaders (B:\OSPanel\domains\domain.dev\frontend\node_modules\webpack\lib\NormalModule.js:209:11)
at B:\OSPanel\domains\domain.dev\frontend\node_modules\loader-runner\lib\LoaderRunner.js:370:3
at iterateNormalLoaders (B:\OSPanel\domains\domain.dev\frontend\node_modules\loader-runner\lib\LoaderRunner.js:211:10)
at B:\OSPanel\domains\domain.dev\frontend\node_modules\loader-runner\lib\LoaderRunner.js:202:4
at B:\OSPanel\domains\domain.dev\frontend\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:70:14
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
@ ./src/components/sign/components/signin/style.scss
@ ./src/components/sign/components/signin/index.js
@ ./src/components/sign/index.js
@ ./src/shell.js
@ ./src/containers/notice/index.js
@ ./src/routes.js
@ ./src/containers/root.js
@ ./src/main.js
@ multi ./src/main webpack-hot-middleware/client?noInfo=true&reload=true
ERROR in ./src/containers/people/style.scss
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
| @import "../global/base.scss";
|
| .header{
@ ./node_modules/style-loader!./src/containers/people/style.scss 4:14-39 18:2-22:4 19:20-45
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/style-loader/index.js!src/containers/write-comment/style.scss:
[0] ./src/containers/write-comment/style.scss 160 bytes {0} [built] [failed] [1 error]
[1] ./node_modules/style-loader!./src/containers/write-comment/style.scss 911 bytes {0} [built]
+ 2 hidden modules
ERROR in ./src/components/subnav/index.js
Module not found: Error: Can't resolve 'style' in 'B:\OSPanel\domains\domains.dev\frontend'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
You need to specify 'style-loader' instead of 'style',
see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed
@ ./src/components/subnav/index.js 26:13-36
@ ./src/containers/oauth-binding/index.js
@ ./src/routes.js
@ ./src/containers/root.js
@ ./src/main.js
@ multi ./src/main webpack-hot-middleware/client?noInfo=true&reload=true
var webpack = require('webpack');
var HtmlwebpackPlugin = require('html-webpack-plugin');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var ROOT_PATH = path.resolve(__dirname);
var NODE_MODULES_PATH = path.resolve(ROOT_PATH, 'node_modules');
var config = require('./config')
module.exports = {
devtool: '#inline-source-map',
entry: {
app: [
'./src/main',
'webpack-hot-middleware/client?noInfo=true&reload=true',
],
vendors: [
'react',
'react-dom',
'react-router',
'babel-polyfill',
'redux',
'react-redux',
'react-ga',
'react-document-meta',
'react-cookie',
'react-tabs',
'axios',
'draft-js',
'webpack-hot-middleware/client?noInfo=true&reload=true',
]
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].bundle.js',
publicPath: config.public_path + "/"
},
resolve: {
extensions: ['*', '.js', '.jsx'],
},
module: {
loaders: [
{
test: /\.js$/i,
exclude: /node_modules/,
loader: 'babel?presets[]=es2015,presets[]=react,presets[]=stage-0',
},
{
test: /\.scss$/i,
loader: ExtractTextPlugin.extract('style',
`css?modules&importLoaders=1&localIdentName=${config.class_scoped_name}!resolve-url!sass`),
include: path.resolve(__dirname, 'src')
},
{ test: /\.css$/, loader: ExtractTextPlugin.extract('style', 'css') },
{ test: /\.(png|jpg|gif)$/, loader: 'url?limit=40000' },
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }
]
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({ name: 'vendor', filename: 'vendor.bundle.js' }),
new ExtractTextPlugin('common.css', {
allChunks: true
}),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
},
'__NODE__': JSON.stringify(false)
}),
new HtmlwebpackPlugin({
filename: path.resolve(__dirname, 'dist/index.ejs'),
template: 'src/view/index.html',
public_path: config.public_path + '/',
cdn: config.qiniu.url + '/',
analysis_script: config.analysis_script,
meta: '<%- meta %>',
htmlDom: '<%- html %>',
reduxState: '<%- reduxState %>'
}),
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin(),
]
}
{
"name": "",
"version": "0.0.1",
"description": "",
"scripts": {
"dev": "set NODE_ENV=development __NODE__=false && webpack --progress --colors --config webpack.development.config.js && set NODE_ENV=development __NODE__=true node server",
"build": "set NODE_ENV=production __NODE__=true && webpack --progress --colors --config webpack.production.config.js",
"server": "set NODE_ENV=development __NODE__=true node server",
"qiniu": "node upload-to-qiniu.js",
"test": "set NODE_ENV=development __NODE__=false jest",
"upload-static": "node upload-to-qiniu.js"
},
"engines": {
"node": ">=6"
},
"jest": {
"testPathDirs": [
"<rootDir>/src"
],
"testEnvironment": "node",
"moduleNameMapper": {
"^.+\\.(css|scss)$": "identity-obj-proxy",
"^.+\\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/src/__mocks__/fileMock.js"
}
},
"dependencies": {
"axios": "^0.17.1",
"babel-core": "^6.14.0",
"babel-loader": "^7.1.2",
"babel-plugin-css-modules-transform": "^1.1.0",
"babel-plugin-react-css-modules": "^3.3.3",
"babel-polyfill": "^6.13.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-latest": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",
"body-parser": "^1.15.2",
"clean-webpack-plugin": "^0.1.14",
"cookie-parser": "^1.4.3",
"cross-env": "^5.1.3",
"css-loader": "^0.28.9",
"css-modules-require-hook": "^4.0.5",
"draft-js": "^0.10.1",
"draft-js-linkify-plugin": "^2.0.0-beta9",
"editor": "github:lepture/editor",
"ejs": "^2.5.1",
"ejs-loader": "^0.3.0",
"express": "^4.14.0",
"extract-text-webpack-plugin": "^3.0.2",
"history": "^4.7.2",
"html-webpack-plugin": "^2.24.1",
"ignore-loader": "^0.1.1",
"mobi.css": "^3.1.1",
"node-sass": "^4.5.3",
"prop-types": "^15.5.4",
"qrcode.react": "^0.7.2",
"react": "16.2.0",
"react-cookie": "^2.1.2",
"react-create-class": "^1.0.0",
"react-css-modules": "^4.0.3",
"react-document-meta": "^2.1.1",
"react-dom": "16.2.0",
"react-fileupload": "^2.4.0",
"react-ga": "^2.1.2",
"react-qiniu": "^1.5.0",
"react-redux": "^5.0.6",
"react-tabs": "^2.2.1",
"reactjs-localstorage": "^0.0.6",
"redraft": "^0.9.0",
"redux": "^3.5.2",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.1.0",
"resolve-url": "^0.2.1",
"resolve-url-loader": "^2.2.1",
"sass-loader": "^6.0.6",
"socket.io": "^2.0.4",
"style-loader": "^0.19.1",
"url-loader": "^0.6.2",
"webpack": "^3.10.0",
"webpack-dev-middleware": "^2.0.4",
"webpack-dev-server": "^2.11.1",
"webpack-hot-middleware": "^2.13.2",
"webpack-manifest-plugin": "^1.1.0"
},
"devDependencies": {
"babel": "^6.3.26",
"babel-jest": "^22.1.0",
"babel-preset-airbnb": "^2.4.0",
"compression-webpack-plugin": "^1.1.3",
"copy-webpack-plugin": "^4.0.1",
"enzyme": "^3.3.0",
"glob": "^7.1.1",
"identity-obj-proxy": "^3.0.0",
"jest": "22.1.4",
"jest-cli": "22.1.4",
"jsdom": "11.6.1",
"jsdom-global": "3.0.2",
"offline-plugin": "^4.6.1",
"qiniu": "^7.1.2",
"react-addons-test-utils": "^15.4.2",
"react-headroom": "^2.1.5",
"webpack-bundle-analyzer": "^2.3.0",
"react-router": "4.2.0"
}
}
if(stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0')) $xBrowser = 'ie6';
elseif(stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) $xBrowser = 'ie7';
elseif(stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.0')) $xBrowser = 'ie8';
if($xBrowser == 'ie6' OR $xBrowser == 'ie7' OR $xBrowser == 'ie8')
header("Location: /browser.php");
"." не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gg@1.0.0 build: `./node_modules/webpack/bin/webpack.js -p`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gg@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Удалил,ничего не изменилось. (((