Webpack Fehler Nicht Beheben Datei oder Verzeichnis

Bin ich immer diese Fehlermeldung wenn ich npm start mein webpack-dev-server:

ERROR in multi main
Module not found: Error: Cannot resolve 'file' or 'directory' /var/www/html/151208-DressingAphrodite/app in /var/www/html/151208-DressingAphrodite
 @ multi main

Hier ist meine webpack.config.js:

var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require ('html-webpack-plugin');

const PATHS = {
  app: path.join (__dirname, 'app'),
  build : path.join (__dirname, 'build')
};

module.exports = {
  entry : [
    'babel-polyfill',
    'webpack-dev-server/client?http://localhost:8080',
    PATHS.app
  ],
  output : {
      publicPath : '/',
      filename : 'dressingaphrodite.js',
      hash : true
  },
  debug : true,
  devServer : {
    contentBase : './app'
  },
  devtool : 'source-map',
  module : {
    loaders : [
      {
        test : /\.jsx?$/,
        include : PATHS.app,
        loader : 'babel-loader',
        query : {
          presets : ["es2015"]
        }
      },
      {
          test: /\.css$/,
          include: PATHS.app,
          loader: 'style!css'
      }
    ]
  },
  plugins : [
    new HtmlWebpackPlugin ({
      title : 'Dressing Aphrodite',
      filename : 'da.html'
    })
  ]
};
Ich fürchte Daten, die Sie nicht genug, um Ihnen zu helfen.
Was sonst noch notwendig ist?
Stellen Sie sicher, dass das Verzeichnis existiert?
Ich habe eine etwas ähnliche Fehler beim Aufruf einfach die webpack-Befehl falsch: stackoverflow.com/questions/48790742/...

InformationsquelleAutor Kayote | 2015-12-08

Schreibe einen Kommentar