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

Unable to start project #12

Closed
remija opened this issue May 4, 2020 · 6 comments · Fixed by #13
Closed

Unable to start project #12

remija opened this issue May 4, 2020 · 6 comments · Fixed by #13
Assignees
Labels
bug Something isn't working

Comments

@remija
Copy link

remija commented May 4, 2020

Issue and Steps to Reproduce

Clone the repository.

First, npm install.

Then, npm start

Versions

0.1.0 (current "master" branch)

Screenshots

Expected

The application is displayed.

Actual

Unable to launch project :

prototype.js:1 Uncaught Error: Cannot find module './locale'
at webpackMissingModule (prototype.js:1)
at Module../node_modules/moment/src/lib/moment/prototype.js (prototype.js:1)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../node_modules/moment/src/lib/moment/moment.js (moment.js:1)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../node_modules/moment/src/moment.js (moment.js:1)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../node_modules/react-datepicker/es/index.js (index.js:1)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Object../node_modules/@axa-fr/react-toolkit-form-input-date/dist/CustomDate.js (CustomDate.js:23)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Object../node_modules/@axa-fr/react-toolkit-form-input-date/dist/DateInput.js (DateInput.js:27)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Object../node_modules/@axa-fr/react-toolkit-form-input-date/dist/index.js (index.js:7)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Object../node_modules/@axa-fr/react-toolkit-all/dist/index.js (index.js:22)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../src/layout/Header/Header.js (Header.container.js:9)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../src/layout/Header/index.js (index.js:1)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../src/layout/App/App.js (index.js:14)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../src/layout/App/index.js (index.js:1)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Module../src/index.js (reducer.js:16)
at webpack_require (bootstrap:781)
at fn (bootstrap:149)
at Object.0 (index.js:1)
at webpack_require (bootstrap:781)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1

Additional Details

  • Installed packages
@youf-olivier
Copy link

moment/moment#5472

@samuel-gomez-axa
Copy link
Contributor

thank for you issue, you should resolve by using the version 2.2.24 for moment.
moment/moment#5472

can you make a pull request, please ?

@guifeliper
Copy link

You can find the solution here moment/moment#5472 a comment from @MohsinGhani.
I am using yarn and it solved the issue. ;)

Hello Guys!
I faced the same issue from last few hours and finally I have resolved it through changing moment version.

Reason:
moment release the new version 17 hours ago from 2.24.0 to 2.25.0

Solution:
Step 1: change the versions

  • "moment": "2.24.0",
  • "moment-timezone": "^0.5.28",

Step 2: If you are using yarn please add resolutions in your package.json file like this
"dependencies" {
"moment": "2.24.0",
"moment-timezone": "^0.5.28"
},
"resolutions": {
"moment": "2.24.0"
},

Thank You.

@youf-olivier
Copy link

Yes we found this solution, Rémi is making a PR 🥇

But Thank you very much for your comment 👍

@remija
Copy link
Author

remija commented May 4, 2020

OK, I will force "moment" to 2.24.0 version.

It works with exactly with version.

@youf-olivier youf-olivier added the bug Something isn't working label May 4, 2020
@remija
Copy link
Author

remija commented May 4, 2020

See : #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants