2016-11-14 16 views
9

एक सप्ताह पहले यह ठीक काम कर रहा था। - अब, कोई भी परिवर्तन (एक ही पीसी और बिल्कुल वैसा ही फ़ाइलें रेपो के खिलाफ कोई अंतर) के बिना, npm install के बाद यह अब काम कर रहा है और निम्न त्रुटि के साथ दुर्घटनाग्रस्त है:वेबपैक अचानक टूट गया

[email protected]:~/workspace/work/project$ npm run build 

> [email protected] build /some_outer_path/some_path/workspace/work/project 
> rimraf dist && webpack --progress --profile --bail 

10% building modules 3/12 modules 9 active ...h-fe/node_modules/quill/dist/quill.jsModuleNotFoundError: Module not found: Error: Can't resolve 'css' in '/some_outer_path/some_path/workspace/work/project' 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/Compilation.js:232:38 
    at onDoneResolving (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/NormalModuleFactory.js:40:20) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/NormalModuleFactory.js:159:21 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:3853:9 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:484:16 
    at iteratorCallback (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1082:13) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:988:16 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:3850:13 
    at apply (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:41:25) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:76:12 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:484:16 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1161:9 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:484:16 
    at iteratorCallback (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1082:13) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:988:16 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1158:13 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/NormalModuleFactory.js:216:19 
    at onResolved (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:70:11) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at afterInnerCallback (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:138:10) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at Resolver.applyPluginsAsyncSeriesBailResult1 (/some_outer_path/some_path/workspace/work/project/node_modules/tapable/lib/Tapable.js:108:46) 
    at innerCallback (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:125:19) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/tapable/lib/Tapable.js:210:15 
    at /some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:39:4 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at afterInnerCallback (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:138:10) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at Resolver.applyPluginsAsyncSeriesBailResult1 (/some_outer_path/some_path/workspace/work/project/node_modules/tapable/lib/Tapable.js:108:46) 
resolve 'css' in '/some_outer_path/some_path/workspace/work/project' 
    Parsed request is a module 
    using description file: /some_outer_path/some_path/workspace/work/project/package.json (relative path: .) 
    after using description file: /some_outer_path/some_path/workspace/work/project/package.json (relative path: .) 
    resolve as module 
     /some_outer_path/some_path/workspace/work/node_modules doesn't exist or is not a directory 
     /some_outer_path/some_path/workspace/node_modules doesn't exist or is not a directory 
     /some_outer_path/some_path/node_modules doesn't exist or is not a directory 
     /some_outer_path/node_modules doesn't exist or is not a directory 
     /mnt/node_modules doesn't exist or is not a directory 
     /node_modules doesn't exist or is not a directory 
     looking for modules in /some_outer_path/some_path/workspace/work/project/node_modules 
     using description file: /some_outer_path/some_path/workspace/work/project/package.json (relative path: ./node_modules) 
     after using description file: /some_outer_path/some_path/workspace/work/project/package.json (relative path: ./node_modules) 
      using description file: /some_outer_path/some_path/workspace/work/project/package.json (relative path: ./node_modules/css) 
      as directory 
       /some_outer_path/some_path/workspace/work/project/node_modules/css doesn't exist 
      no extension 
       /some_outer_path/some_path/workspace/work/project/node_modules/css doesn't exist 
      .js 
       /some_outer_path/some_path/workspace/work/project/node_modules/css.js doesn't exist 
      .json 
       /some_outer_path/some_path/workspace/work/project/node_modules/css.json doesn't exist 

/some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/Compilation.js:197 
         _this.errors.push(err); 
     ^
TypeError: Cannot read property 'errors' of null 
    at errorAndCallback (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/Compilation.js:197:9) 
    at errorOrWarningAndCallback (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/Compilation.js:228:13) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/Compilation.js:232:12 
    at onDoneResolving (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/NormalModuleFactory.js:40:20) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/NormalModuleFactory.js:159:21 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:3853:9 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:484:16 
    at iteratorCallback (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1082:13) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:988:16 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:3850:13 
    at apply (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:41:25) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:76:12 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:484:16 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1161:9 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:484:16 
    at iteratorCallback (/some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1082:13) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:988:16 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/node_modules/async/dist/async.js:1158:13 
    at /some_outer_path/some_path/workspace/work/project/node_modules/webpack/lib/NormalModuleFactory.js:216:19 
    at onResolved (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:70:11) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at afterInnerCallback (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:138:10) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at Resolver.applyPluginsAsyncSeriesBailResult1 (/some_outer_path/some_path/workspace/work/project/node_modules/tapable/lib/Tapable.js:108:46) 
    at innerCallback (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:125:19) 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at /some_outer_path/some_path/workspace/work/project/node_modules/tapable/lib/Tapable.js:210:15 
    at /some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:39:4 
    at loggingCallbackWrapper (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) 
    at afterInnerCallback (/some_outer_path/some_path/workspace/work/project/node_modules/enhanced-resolve/lib/Resolver.js:138:10) 

npm ERR! Linux 4.4.0-45-generic 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build" 
npm ERR! node v6.8.1 
npm ERR! npm v3.10.8 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] build: `rimraf dist && webpack --progress --profile --bail` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] build script 'rimraf dist && webpack --progress --profile --bail'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the project package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  rimraf dist && webpack --progress --profile --bail 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs project 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls project 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /some_outer_path/some_path/workspace/work/project/npm-debug.log 

webpack.config.js (ज्यादातर इस बीज से - https://github.com/preboot/angular2-webpack/):

// Helper: root() is defined at the bottom 
var path = require('path'); 
var webpack = require('webpack'); 

// Webpack Plugins 
var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; 
var autoprefixer = require('autoprefixer'); 
var HtmlWebpackPlugin = require('html-webpack-plugin'); 
var ExtractTextPlugin = require('extract-text-webpack-plugin'); 
var CopyWebpackPlugin = require('copy-webpack-plugin'); 
var DashboardPlugin = require('webpack-dashboard/plugin'); 
var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin; 

/** 
* Env 
* Get npm lifecycle event to identify the environment 
*/ 
var ENV = process.env.npm_lifecycle_event; 
var isTestWatch = ENV === 'test-watch'; 
var isTest = ENV === 'test' || isTestWatch; 
var isProd = ENV === 'build'; 

module.exports = function makeWebpackConfig() { 
    /** 
    * Config 
    * Reference: http://webpack.github.io/docs/configuration.html 
    * This is the object where all configuration gets set 
    */ 
    var config = {}; 

    /** 
    * Devtool 
    * Reference: http://webpack.github.io/docs/configuration.html#devtool 
    * Type of sourcemap to use per build type 
    */ 
    if (isProd) { 
    config.devtool = 'source-map'; 
    } 
    else if (isTest) { 
    config.devtool = 'inline-source-map'; 
    } 
    else { 
    config.devtool = 'eval-source-map'; 
    } 

    /** 
    * Entry 
    * Reference: http://webpack.github.io/docs/configuration.html#entry 
    */ 
    config.entry = isTest ? {} : { 
    'polyfills': './src/polyfills.ts', 
    'vendor': './src/vendor.ts', 
    'app': './src/main.ts' // our angular app 
    }; 

    /** 
    * Output 
    * Reference: http://webpack.github.io/docs/configuration.html#output 
    */ 
    config.output = isTest ? {} : { 
    path: root('dist'), 
    publicPath: isProd ? '/' : 'http://localhost:8080/', 
    filename: isProd ? 'js/[name].[hash].js' : 'js/[name].js', 
    chunkFilename: isProd ? '[id].[hash].chunk.js' : '[id].chunk.js' 
    }; 

    /** 
    * Resolve 
    * Reference: http://webpack.github.io/docs/configuration.html#resolve 
    */ 
    config.resolve = { 
    // only discover files that have those extensions 
    extensions: ['.ts', '.js', '.json', '.css', '.scss', '.html'], 
    }; 

    var atlOptions = ''; 
    if (isTest && !isTestWatch) { 
    // awesome-typescript-loader needs to output inlineSourceMap for code coverage to work with source maps. 
    atlOptions = 'inlineSourceMap=true&sourceMap=false'; 
    } 

    /** 
    * Loaders 
    * Reference: http://webpack.github.io/docs/configuration.html#module-loaders 
    * List: http://webpack.github.io/docs/list-of-loaders.html 
    * This handles most of the magic responsible for converting modules 
    */ 
    config.module = { 
    rules: [ 
     // Support for .ts files. 
     { 
     test: /\.ts$/, 
     loaders: ['awesome-typescript-loader?' + atlOptions, 'angular2-template-loader', '@angularclass/hmr-loader'], 
     exclude: [isTest ? /\.(e2e)\.ts$/ : /\.(spec|e2e)\.ts$/, /node_modules\/(?!(ng2-.+))/] 
     }, 

     // copy those assets to output 
     { 
     test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)(\?v=[0-9]\.[0-9]\.[0-9])?$/, 
     loader: 'file?name=fonts/[name].[hash].[ext]?' 
     }, 

     // Support for *.json files. 
     {test: /\.json$/, loader: 'json'}, 

     // Support for CSS as raw text 
     // use 'null' loader in test mode (https://github.com/webpack/null-loader) 
     // all css in src/style will be bundled in an external css file 
     { 
     test: /\.css$/, 
     exclude: root('src', 'app'), 
     loader: isTest ? 'null' : ExtractTextPlugin.extract({ 
      fallbackLoader: 'style-loader', 
      loader: ['css', 'postcss'] 
     }) 
     }, 
     // all css required in src/app files will be merged in js files 
     {test: /\.css$/, include: root('src', 'app'), loader: 'raw!postcss'}, 

     // support for .scss files 
     // use 'null' loader in test mode (https://github.com/webpack/null-loader) 
     // all css in src/style will be bundled in an external css file 
     { 
     test: /\.(scss|sass)$/, 
     exclude: root('src', 'app'), 
     loader: isTest ? 'null' : ExtractTextPlugin.extract({ 
      fallbackLoader: 'style-loader', 
      loader: ['css', 'postcss', 'sass'] 
     }) 
     }, 
     // all css required in src/app files will be merged in js files 
     {test: /\.(scss|sass)$/, exclude: root('src', 'style'), loader: 'raw!postcss!sass'}, 

     // support for .html as raw text 
     // todo: change the loader to something that adds a hash to images 
     {test: /\.html$/, loader: 'raw', exclude: root('src', 'public')} 
    ] 
    }; 

    if (isTest && !isTestWatch) { 
    // instrument only testing sources with Istanbul, covers ts files 
    config.module.rules.push({ 
     test: /\.ts$/, 
     enforce: 'post', 
     include: path.resolve('src'), 
     loader: 'istanbul-instrumenter-loader', 
     exclude: [/\.spec\.ts$/, /\.e2e\.ts$/, /node_modules/] 
    }); 
    } 

    // if (!isTest || !isTestWatch) { 
    // // tslint support 
    // config.module.rules.push({ 
    //  test: /\.ts$/, 
    //  enforce: 'pre', 
    //  loader: 'tslint' 
    // }); 
    // } 

    /** 
    * Plugins 
    * Reference: http://webpack.github.io/docs/configuration.html#plugins 
    * List: http://webpack.github.io/docs/list-of-plugins.html 
    */ 
    config.plugins = [ 
    // Define env variables to help with builds 
    // Reference: https://webpack.github.io/docs/list-of-plugins.html#defineplugin 
    new webpack.DefinePlugin({ 
     // Environment helpers 
     'process.env': { 
     ENV: JSON.stringify(ENV) 
     } 
    }), 

    // Workaround needed for angular 2 angular/angular#11580 
    new webpack.ContextReplacementPlugin(
     // The (\\|\/) piece accounts for path separators in *nix and Windows 
     /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/, 
     root('./src') // location of your src 
    ), 

    // Tslint configuration for webpack 2 
    new webpack.LoaderOptionsPlugin({ 
     options: { 
     /** 
     * Apply the tslint loader as pre/postLoader 
     * Reference: https://github.com/wbuchwalter/tslint-loader 
     */ 
     tslint: { 
      emitErrors: false, 
      failOnHint: false 
     }, 
     /** 
     * Sass 
     * Reference: https://github.com/jtangelder/sass-loader 
     * Transforms .scss files to .css 
     */ 
     sassLoader: { 
      //includePaths: [path.resolve(__dirname, "node_modules/foundation-sites/scss")] 
     }, 
     /** 
     * PostCSS 
     * Reference: https://github.com/postcss/autoprefixer-core 
     * Add vendor prefixes to your css 
     */ 
     postcss: [ 
      autoprefixer({ 
      browsers: ['last 2 version'] 
      }) 
     ] 
     } 
    }) 

    // new webpack.ProvidePlugin({Quill: 'Quill'}) 
    ]; 

    if (!isTest && !isProd) { 
    config.plugins.push(new DashboardPlugin()); 
    } 

    if (!isTest && !isTestWatch) { 
    config.plugins.push(
     new ForkCheckerPlugin(), 

     // Generate common chunks if necessary 
     // Reference: https://webpack.github.io/docs/code-splitting.html 
     // Reference: https://webpack.github.io/docs/list-of-plugins.html#commonschunkplugin 
     new CommonsChunkPlugin({ 
     name: ['vendor', 'polyfills'] 
     }), 

     // Inject script and link tags into html files 
     // Reference: https://github.com/ampedandwired/html-webpack-plugin 
     new HtmlWebpackPlugin({ 
     template: './src/public/index.html', 
     chunksSortMode: 'dependency' 
     }), 

     // Extract css files 
     // Reference: https://github.com/webpack/extract-text-webpack-plugin 
     // Disabled when in test mode or not in build mode 
     new ExtractTextPlugin({filename: 'css/[name].[hash].css', disable: !isProd}) 
    ); 
    } 

    // Add build specific plugins 
    if (isProd) { 
    config.plugins.push(
     // Reference: http://webpack.github.io/docs/list-of-plugins.html#noerrorsplugin 
     // Only emit files when there are no errors 
     new webpack.NoErrorsPlugin(), 

     // // Reference: http://webpack.github.io/docs/list-of-plugins.html#dedupeplugin 
     // // Dedupe modules in the output 
     // new webpack.optimize.DedupePlugin(), 

     // Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin 
     // Minify all javascript, switch loaders to minimizing mode 
     new webpack.optimize.UglifyJsPlugin({sourceMap: true, mangle: {keep_fnames: true}}), 

     // Copy assets from the public folder 
     // Reference: https://github.com/kevlened/copy-webpack-plugin 
     new CopyWebpackPlugin([{ 
     from: root('src/public') 
     }]) 
    ); 
    } 

    /** 
    * Dev server configuration 
    * Reference: http://webpack.github.io/docs/configuration.html#devserver 
    * Reference: http://webpack.github.io/docs/webpack-dev-server.html 
    */ 
    config.devServer = { 
    contentBase: './src/public', 
    historyApiFallback: true, 
    quiet: true, 
    stats: 'minimal' // none (or false), errors-only, minimal, normal (or true) and verbose 
    }; 

    return config; 
}(); 

// Helper functions 
function root(args) { 
    args = Array.prototype.slice.call(arguments, 0); 
    return path.join.apply(path, [__dirname].concat(args)); 
} 

किसी भी विचार क्या तोड़ दिया सकता है और क्यों? इसे कैसे जोड़ेंगे?

Edit1: webpack संस्करण है 2.1.0-beta.25 2.1.0-beta.26 (Edit3)

EDIT2: बीज के रूप में अच्छी तरह से (बस क्रिस्टल स्पष्ट होना काम नहीं कर रहा है - यह था एक सप्ताह पहले ठीक काम कर रहे थे)। यह इस त्रुटि के साथ क्रैश हो रहा है:

ERROR in ./src/polyfills.ts 
Module build failed: TypeError: Can't add property fileName, object is not extensible 
    at Object.Linter (/some_outer_path/some_path/workspace/work/angular2-webpack-official/node_modules/tslint/lib/tslint.js:12:23) 

ERROR in ./src/vendor.ts 
Module build failed: TypeError: Can't add property fileName, object is not extensible 
    at Object.Linter (/some_outer_path/some_path/workspace/work/angular2-webpack-official/node_modules/tslint/lib/tslint.js:12:23) 

ERROR in ./src/main.ts 
Module build failed: TypeError: Can't add property fileName, object is not extensible 
    at Object.Linter (/some_outer_path/some_path/workspace/work/angular2-webpack-official/node_modules/tslint/lib/tslint.js:12:23) 

यह एक ही गलती मैं है अगर मैं अपने प्रोजेक्ट में TS-फाहा अनुमति देते हैं। लेकिन मुझे लगता है कि टीएस-लिंट सिर्फ गलत इनपुट पर दुर्घटनाग्रस्त हो रहा है (एक श्रृंखला में कुछ और इसे तोड़ दिया)।

मुझे पूरा यकीन है कि मैंने नोड या एनपीएम नहीं बदला है। मैं वास्तव में एक सुराग नहीं है। यहां परियोजना निर्भरताएं हैं:

"dependencies": { 
    "@angular/common": "2.1.0", 
    "@angular/compiler": "2.1.0", 
    "@angular/core": "2.1.0", 
    "@angular/forms": "2.1.0", 
    "@angular/http": "2.1.0", 
    "@angular/platform-browser": "2.1.0", 
    "@angular/platform-browser-dynamic": "2.1.0", 
    "@angular/router": "3.1.0", 
    "@ngrx/core": "^1.2.0", 
    "@ngrx/effects": "^2.0.0", 
    "@ngrx/router-store": "^1.2.5", 
    "@ngrx/store": "^2.2.1", 
    "@ngrx/store-devtools": "^3.2.1", 
    "angular2-google-maps": "^0.15.0", 
    "angular2-recaptcha": "^0.3.2", 
    "core-js": "^2.4.1", 
    "lodash": "^4.16.4", 
    "ng2-translate": "^3.1.3", 
    "primeng": "^1.0.0-rc.3", 
    "quill": "^1.1.3", 
    "ramda": "^0.22.1", 
    "reflect-metadata": "^0.1.3", 
    "rxjs": "5.0.0-beta.12", 
    "tsmonad": "^0.6.1", 
    "zone.js": "^0.6.21" 
    }, 
    "devDependencies": { 
    "@angularclass/hmr": "^1.0.1", 
    "@angularclass/hmr-loader": "^3.0.2", 
    "@types/core-js": "^0.9.0", 
    "@types/jasmine": "^2.2.29", 
    "@types/node": "^6.0.38", 
    "@types/protractor": "^1.5.16", 
    "@types/selenium-webdriver": "2.44.26", 
    "angular2-template-loader": "^0.4.0", 
    "autoprefixer": "^6.3.2", 
    "awesome-typescript-loader": "^2.2.4", 
    "codelyzer": "0.0.26", 
    "copy-webpack-plugin": "^3.0.0", 
    "css-loader": "^0.25.0", 
    "extract-text-webpack-plugin": "^2.0.0-beta.4", 
    "file-loader": "^0.9.0", 
    "html-loader": "^0.4.0", 
    "html-webpack-plugin": "^2.8.1", 
    "istanbul-instrumenter-loader": "^0.2.0", 
    "jasmine-core": "^2.3.4", 
    "jasmine-spec-reporter": "^2.4.0", 
    "json-loader": "^0.5.3", 
    "karma": "1.3.0", 
    "karma-chrome-launcher": "^2.0.0", 
    "karma-coverage": "^1.0.0", 
    "karma-jasmine": "^1.0.2", 
    "karma-mocha-reporter": "^2.0.3", 
    "karma-phantomjs-launcher": "^1.0.0", 
    "karma-remap-istanbul": "0.2.1", 
    "karma-sourcemap-loader": "^0.3.7", 
    "karma-webpack": "1.8.0", 
    "node-sass": "^3.4.2", 
    "null-loader": "0.1.1", 
    "phantomjs-prebuilt": "^2.1.4", 
    "postcss-loader": "^0.13.0", 
    "protractor": "^3.1.1", 
    "raw-loader": "0.5.1", 
    "remap-istanbul": "^0.6.4", 
    "rimraf": "^2.5.1", 
    "sass-loader": "^4.0.0", 
    "shelljs": "^0.7.0", 
    "style-loader": "^0.13.0", 
    "ts-helpers": "^1.1.1", 
    "tslint": "^3.4.0", 
    "tslint-loader": "^2.1.0", 
    "typedoc": "^0.4.4", 
    "typescript": "2.0.3", 
    "url-loader": "^0.5.6", 
    "webpack": "^2.1.0-beta.25", 
    "webpack-dashboard": "^0.1.8", 
    "webpack-dev-server": "2.1.0-beta.9" 
    } 
+0

ऐसा लगता है कि यह एक निर्भरता लोड नहीं कर सकता था। आप कहते हैं कि फ़ाइलें नहीं बदली गईं लेकिन आप एनपीएम इंस्टॉल चलाते हैं जो निश्चित रूप से फ़ाइलों को बदलता है। यह quill.js के बारे में शिकायत करता है, हो सकता है कि आप दो सप्ताह पहले स्पष्ट रूप से इस लाइब्रेरी के लिए संस्करण सेट करने का प्रयास कर सकें और इससे समस्या हल हो जाएगी – smnbbrv

+0

"फ़ाइलों को बदलें" से मेरा मतलब प्रोजेक्ट स्रोत फ़ाइलें और कॉन्फ़िगरेशन था। मैं क्विल को देखने की कोशिश करूंगा, लेकिन मुझे नहीं लगता कि यह समस्या है, क्योंकि मैंने संशोधन के बिना बीज भी कोशिश की है और यह भी काम नहीं कर रहा है :(। मैं जल्द ही प्रश्न अपडेट कर दूंगा। – monnef

उत्तर

11

क्या आप वाकई beta26 नहीं चला रहे हैं? आप NPM पिछले 8 घंटे में स्थापित भागा तो आप परिवर्तनों को तोड़ने के साथ नई रिलीज कैसे लोडर हल कर रहे हैं मिल गया है हो सकता है

भागो
./node_modules/.bin/webpack -v

beta26 के साथ या उच्चतर आप हर करने के लिए "-loader" संलग्न करने के लिए की जरूरत है लोडर नाम या जोड़ें "-loader" resolveLoader.moduleExtions

आप मामले में मैं करने के लिए फ़ाइल बदल जाएगा फाइल-लोडर loader: 'file-loader?name=fonts/[name].[hash].[ext]?

आप ऑप्ट-इन पुराने तरीके से कर सकते हैं moduleExte निर्दिष्ट द्वारा nsions स्पष्ट resolveLoader वस्तु

resolveLoader: { 
    moduleExtensions: ['-loader'] 
} 

पर मैं सिर्फ यह समान समस्या अपने आप

Webpack v2.1.0-beta.26 release notes

Breaking Changes:

-loader is no longer automatically added when resolving loaders

This was removed because it often lead to problems.

You can still opt-in to the old behavior with the resolveLoader.moduleExtensions configuration option.

+0

I सोचा कि यह "-लोडर" चीज पहले से ही थी। यह कम से कम बीटा 26 से पहले प्रलेखन में था। –

+0

ओह, आप सही हैं। मेरे पास 26 नहीं 25 हैं। मैं उन 'लोडर' पर एक नज़र डालूंगा। – monnef

+0

जोड़ने के बाद लोडर के एक समूह (सीएसएस, कच्चे, फ़ाइल, शून्य और कुछ अन्य) के लिए प्रत्यय यह पहले के रूप में काम कर रहा है :)। आपका बहुत बहुत धन्यवाद। – monnef

संबंधित मुद्दे