Fix issue #4 Error when building with webpack 2 on linux#6
Fix issue #4 Error when building with webpack 2 on linux#6SamHwang1990 wants to merge 1 commit intoautoNumeric:masterfrom
Conversation
Fix the autonumeric external config 1. depend `autonumeric` as `autonumeric` in amd or commonjs environment. 2. depend `autonumeric` as `AutoNumeric` in global script environment.
Complete the documentation on how to install and use the component Add a link to the examples page and its source in the Readme Fix the example script imports by removing the unneeded AutoNumeric link Signed-off-by: Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
|
Hey @SamHwang1990 , thanks for the PR! On my end I have 3 build tests: the examples (with webpack 3), and 2 dummy projects with webpack 2 and webpack 3 respectively. About commonjs 1.0, the |
|
I just faced exact same issue with Ubuntu based machine. |
|
I cannot reproduce that bug. As I said, I created 2 small projects, one with webpack 2 and one with webpack 3, and both correctly compile the bundle. The build log: Could you please provide a test case where the build fail with webpack 2? Thanks! |
|
i've encounter this error also in centOS 7 |
|
Is this still relevant, now that Webpack 4.18+ is out? Shouldn't we close this? |
|
@AlexandreBonneau Yes, I thinks it is still relevant.
Here on my Windows machine everything is OK. Builds prod without errors. |
|
@AlexandreBonneau have you tested in the linux environment? Because linux systems are case sensitive while macos and windows are not. I guess the problem here is that npm on linux can't resolve package with the name |
|
This is still an issue for me on linux environment. Right now I have to manually fix in |
autonumericasautonumericin amd or commonjs2 environment.autonumericasAutoNumericin global script environment.examplespage is okay to includeautonumericautonumericexport itself as a sub property ofexportsobject:In commonjs 1.0 module system, maybe we shall import
autonumericlike:But we can ignore this error because both node.js and webpack are base on commonjs 1.1.