vue-autoNumeric icon indicating copy to clipboard operation
vue-autoNumeric copied to clipboard

build fails on linux

Open markRosenvinge opened this issue 6 years ago • 12 comments

The recent change made in build/webpack.base.js creates a issue when compiling with webpack on case sensitive OS like linux.

This dependency was not found:

* AutoNumeric in ./node_modules/vue-autonumeric/dist/vue-autonumeric.min.js

THIS

externals: {
    autonumeric: 'AutoNumeric',

SHOULD BE THIS

externals: {
    AutoNumeric: 'autonumeric',

markRosenvinge avatar May 09 '18 10:05 markRosenvinge

It seems it has been an issue before #4 and was fixed. But has recently been broken again

markRosenvinge avatar May 09 '18 10:05 markRosenvinge

Somehow, it seems when I unstashed some changes it overwrote the build/webpack.base.js configuration file. Thanks for noticing @markRosenvinge.

I'll have one day to find a way to test that to prevent further regression.

AlexandreBonneau avatar May 09 '18 19:05 AlexandreBonneau

Well, I ran the exact same tests than in issue #4 (creating VueAutonum and VueAutonum3 projects to compile a dummy one with webpack 2 and 3), and cannot find any issue. I also created a third project to test with the lastest webpack version (v4.8.1 today), and the build works as expected.

I'm exclusively running Linux, so I think I would have spot any case sensitive issue!

Would you have a reproducible test case?

AlexandreBonneau avatar May 09 '18 19:05 AlexandreBonneau

I modified the webpack.config.js yet again, and I cannot reproduce any error in the test projects I set up. This should be fixed in v1.2.3.

Please reopen this issue if the problem should arise again.

AlexandreBonneau avatar May 09 '18 21:05 AlexandreBonneau

The fix works well, thanks!

markRosenvinge avatar May 14 '18 14:05 markRosenvinge

I'm having the same issue on version 1.2.6 in centOs:

ERROR in ./node_modules/vue-autonumeric/dist/vue-autonumeric.min.js Module not found: Error: Can't resolve 'AutoNumeric' in 'node_modules/vue-autonumeric/dist'

yagoml avatar Sep 12 '19 14:09 yagoml

I stumbled upon the same issue using 1.2.6... with 1.2.3 it works flawlessly... so there seems to be a regression.

OLibutzki avatar Dec 08 '20 12:12 OLibutzki

Same bug in Linux for me. version 1.2.6 using a laravel and vue2 project. works great on my mac locally but fails on a linux container.

antogkou avatar Aug 10 '21 14:08 antogkou

Same bug in Linux for me. version 1.2.6 using a laravel and vue2 project. works great on my mac locally but fails on a linux container. When I use npm install vue-autonumeric, Same bug appears on mac local. ‍‍Module build failed: Error: ENOENT: no such file or directory, open '/Users/Desktop/project/src/node_modules/vue-autonumeric/dist/vue-autonumeric.min.js'

esamani77 avatar Aug 11 '21 12:08 esamani77

Same bug in Linux for me. version 1.2.6 using a laravel and vue2 project. works great on my mac locally but fails on a linux container. When I use npm install vue-autonumeric, Same bug appears on mac local. ‍‍Module build failed: Error: ENOENT: no such file or directory, open '/Users/Desktop/project/src/node_modules/vue-autonumeric/dist/vue-autonumeric.min.js'

Your error seems a bit different, this is what I get: ERROR in ./node_modules/vue-autonumeric/dist/vue-autonumeric.min.js Module not found: Error: Can't resolve 'AutoNumeric' in 'node_modules/vue-autonumeric/dist'

antogkou avatar Aug 11 '21 12:08 antogkou

Getting this on a Laravel 8 project, running npm i on a Linux machine.

ERROR in ./node_modules/vue-autonumeric/dist/vue-autonumeric.min.js 1:82-104
Module not found: Error: Can't resolve 'AutoNumeric' in '/home/stagingportal/node_modules/vue-autonumeric/dist'

Ubuntu 20.04 [email protected]

Downgrading to 1.2.3 as suggested above fixes the issue.

danjdewhurst avatar Mar 09 '22 10:03 danjdewhurst

I got a error: "Cannot find module 'AutoNumeric' from 'vue-autonumeric.min.js'" Does everyone have a solution for this?

phuhd-0935 avatar Jun 20 '22 12:06 phuhd-0935