-
Notifications
You must be signed in to change notification settings - Fork 78
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
ERROR in Error: Child compilation failed: Module build failed: Error: The path for file doesn't contain relativeTo param #73
Comments
Hi @karthikdeva , have you solved this issue? |
Not sure if this is the original issue, but for me my test for module.exports = {
...
module: {
rules: [
{
exclude: /index\.html/,
test: /\.html$/,
use: [
{
loader: 'ngtemplate-loader',
options: {
relativeTo: './src'
}
},
{ loader: 'html-loader' }
]
}
]
},
...
} |
This seems to be a problem with the combination of this loader and HtmlWebpackPlugin. The index file used by HtmlWebpackPlugin throws errors unless it is excluded, as @nickbreaton pointed out. However, excluding index.html means that any references in that file will not be required. |
@nickbreaton It worked for me, thanks! |
Is this maybe only windows problem? |
No, I have linux and experiencing same issue. |
I'm new into webpack and trying move gulp to webpack. facing issue in "ngtemplate-loader". Below is my webpack config.
const path = require('path');
const webpack = require("webpack");
const optimize = webpack.optimize;
const htmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const config = require('./webpack/config');
var webpackConfig = {
}
module.exports = webpackConfig;
The text was updated successfully, but these errors were encountered: