You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project using mochapack with file-loader and vue-loader.
Webpack.config has module.rules for file-loader and vue-loader
{
test: /.vue$/,
use: "vue-loader"
},
{
test: /.(png|svg|jpg|gif)$/,
use: {
loader: "file-loader",
options: {
name: "[path][name].[ext]?[hash]",
context: "",
esModule: false
}
}
}
There are others but these are the relevant ones.
I have a script in package.json as follows:
"test": "cross-env NODE_ENV=test mochapack test/**/*-test.js"
When mochapack v1.1.15 is installed the tests run without error.
If v2.0.0 is installed I get errors for img files imported as ... import "../images/exclamation.png";
and errors for vue files
The messages are as follows...
For images:
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
and for Vue files:
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| <b-modal
| id="info-dialog"
To Reproduce
I have not had time to whittle the code to a simple example yet, especially since 2.0.0 is only 7 ours old according to github :)
I am registering the issue so you are aware. I will reply when I have a small project to use.
The minimal information needed to reproduce your issue (ideally a very minimal project setup published on GitHub).
Note that bugs without minimal reproductions might be closed.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment if relevant (please complete the following information):
OS: Windows 10
Node version 12.16.2
Mochapack version 2.0.0
Webpack version 4.41.5
The text was updated successfully, but these errors were encountered:
@AnthonyElcocks Thanks for the report, we will keep it in mind, though to make it really actionable from our side, we really need a reproduction, some repo, small or not so small which we can clone and see the problem ourselves and then troubleshoot it from there.
Describe the bug
I have a project using mochapack with file-loader and vue-loader.
Webpack.config has module.rules for file-loader and vue-loader
{
test: /.vue$/,
use: "vue-loader"
},
{
test: /.(png|svg|jpg|gif)$/,
use: {
loader: "file-loader",
options: {
name: "[path][name].[ext]?[hash]",
context: "",
esModule: false
}
}
}
There are others but these are the relevant ones.
I have a script in package.json as follows:
"test": "cross-env NODE_ENV=test mochapack test/**/*-test.js"
When mochapack v1.1.15 is installed the tests run without error.
If v2.0.0 is installed I get errors for img files imported as ... import "../images/exclamation.png";
and errors for vue files
The messages are as follows...
For images:
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
and for Vue files:
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
The text was updated successfully, but these errors were encountered: