Skip to content
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

build fails on linux #16

Open
markRosenvinge opened this issue May 9, 2018 · 12 comments
Open

build fails on linux #16

markRosenvinge opened this issue May 9, 2018 · 12 comments
Assignees
Labels

Comments

@markRosenvinge
Copy link

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
Copy link
Author

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

@AlexandreBonneau
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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.

@markRosenvinge
Copy link
Author

The fix works well, thanks!

@yagoml
Copy link

yagoml commented Sep 12, 2019

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'

@OLibutzki
Copy link

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

@antogkou
Copy link

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.

@esamani77
Copy link

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'

@antogkou
Copy link

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'

@danjdewhurst
Copy link

danjdewhurst commented Mar 9, 2022

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.

@phuhd-0935
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants