Error cant resolve: Webpack config multiple entry files single output file
up vote
0
down vote
favorite
I am trying to configure webpack to bundle multiple entry files into one single output file. I had look at the documentation and the different examples they have. This one especially enter link description here the problem I am facing is that when i run the build i get the following errors: Insufficient number of arguments or no entry found. Error in entry module not found but the files actually do exist in the folder structure.
Inside of Scripts folder I have Loader.ts and Handler.ts files
Here is my simple webpack.config.js file
const path = require('path');
module.exports = {
context: path.resolve(__dirname, "./Scripts"),
entry: {
loader: "Loader",
handler: "Handler"
},
module: {
rules: [
{
test: /.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
},
output: {
filename: 'LoaderHandler.js',
path: path.resolve(__dirname, './Scripts/Dist')
}
};
Where could I be going wrong with my configuration? I have spent so much time on this to the point of frustration. Is there a better alternative to webpack with less pain configuring. I just want to get up and running but it becoming a somewhat frustrating and daunting task
typescript webpack
add a comment |
up vote
0
down vote
favorite
I am trying to configure webpack to bundle multiple entry files into one single output file. I had look at the documentation and the different examples they have. This one especially enter link description here the problem I am facing is that when i run the build i get the following errors: Insufficient number of arguments or no entry found. Error in entry module not found but the files actually do exist in the folder structure.
Inside of Scripts folder I have Loader.ts and Handler.ts files
Here is my simple webpack.config.js file
const path = require('path');
module.exports = {
context: path.resolve(__dirname, "./Scripts"),
entry: {
loader: "Loader",
handler: "Handler"
},
module: {
rules: [
{
test: /.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
},
output: {
filename: 'LoaderHandler.js',
path: path.resolve(__dirname, './Scripts/Dist')
}
};
Where could I be going wrong with my configuration? I have spent so much time on this to the point of frustration. Is there a better alternative to webpack with less pain configuring. I just want to get up and running but it becoming a somewhat frustrating and daunting task
typescript webpack
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to configure webpack to bundle multiple entry files into one single output file. I had look at the documentation and the different examples they have. This one especially enter link description here the problem I am facing is that when i run the build i get the following errors: Insufficient number of arguments or no entry found. Error in entry module not found but the files actually do exist in the folder structure.
Inside of Scripts folder I have Loader.ts and Handler.ts files
Here is my simple webpack.config.js file
const path = require('path');
module.exports = {
context: path.resolve(__dirname, "./Scripts"),
entry: {
loader: "Loader",
handler: "Handler"
},
module: {
rules: [
{
test: /.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
},
output: {
filename: 'LoaderHandler.js',
path: path.resolve(__dirname, './Scripts/Dist')
}
};
Where could I be going wrong with my configuration? I have spent so much time on this to the point of frustration. Is there a better alternative to webpack with less pain configuring. I just want to get up and running but it becoming a somewhat frustrating and daunting task
typescript webpack
I am trying to configure webpack to bundle multiple entry files into one single output file. I had look at the documentation and the different examples they have. This one especially enter link description here the problem I am facing is that when i run the build i get the following errors: Insufficient number of arguments or no entry found. Error in entry module not found but the files actually do exist in the folder structure.
Inside of Scripts folder I have Loader.ts and Handler.ts files
Here is my simple webpack.config.js file
const path = require('path');
module.exports = {
context: path.resolve(__dirname, "./Scripts"),
entry: {
loader: "Loader",
handler: "Handler"
},
module: {
rules: [
{
test: /.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
},
output: {
filename: 'LoaderHandler.js',
path: path.resolve(__dirname, './Scripts/Dist')
}
};
Where could I be going wrong with my configuration? I have spent so much time on this to the point of frustration. Is there a better alternative to webpack with less pain configuring. I just want to get up and running but it becoming a somewhat frustrating and daunting task
typescript webpack
typescript webpack
asked Nov 9 at 23:18
Chief
4819
4819
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234476%2ferror-cant-resolve-webpack-config-multiple-entry-files-single-output-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown