Closed katilp closed 2 years ago
And just to make sure the files is there:
CMS_Trivia$ ls -l view/src/pages
total 16
-rwxrwxrwx 1 kati kati 1168 Dec 4 09:51 Dashboard.jsx
-rwxrwxrwx 1 kati kati 2416 Dec 4 09:51 GameSection.jsx
-rwxrwxrwx 1 kati kati 469 Dec 4 09:51 Home.jsx
-rwxrwxrwx 1 kati kati 2012 Dec 4 09:51 Manage.jsx
-rwxrwxrwx 1 kati kati 794 Dec 4 09:51 MyScore.jsx
-rwxrwxrwx 1 kati kati 331 Dec 4 09:51 NotFound.jsx
and I would understand that this should resolve the extension
Is this related to:
webpack --mode production
This comes from https://github.com/cms-dpoa/CMS_Trivia/blob/main/view/package.json#L10
"build": "webpack --mode production",
whereas in https://github.com/cms-dpoa/CMS_Trivia/blob/main/view/webpack.config.js#L6 has development as the only option:
mode: "development"
However, changing to webpack --mode development
in package.json does not solve the problem.
If I just comment out Dashboard for local testing, it builds fine.
localhost:8000 is:
That's all OK for local testing. Closing the issue.
Fix typo in App.jx : DashBoard -> Dashboard
Hi katy, a thousand apologies for the delay. But it's probably the version of node you have. I can check if you still need it.
Best regards, Josue Davalos
De: Kati @.> Enviado: Saturday, December 4, 2021 4:39 AM Para: @.> CC: Josue Eulises Davalos @.>; @.> Asunto: [cms-dpoa/CMS_Trivia] docker-compose error Module not found: Error: Can't resolve './pages/DashBoard' in '/view/src' in local testing (Issue #12)
Hello @JosueDavaloshttps://github.com/JosueDavalos I wonder if you can quickly help me 😃
I would need to add a small thing as in #11https://github.com/cms-dpoa/CMS_Trivia/issues/11 but when I try to build locally (without any modifications) I get
=> [build-stage 2/7] WORKDIR /view 0.2s
=> [build-stage 3/7] COPY package.json . 0.0s
=> [build-stage 4/7] RUN npm install 85.8s
=> [build-stage 5/7] RUN npm audit fix 6.3s
=> [build-stage 6/7] COPY . . 0.0s
=> ERROR [build-stage 7/7] RUN npm run build 20.9s
[build-stage 7/7] RUN npm run build:
webpack --mode production
Do you have an idea why this happens?
I've done nothing else than
git clone @.***:cms-dpoa/CMS_Trivia.git
cd CMS_Trivia/
docker-compose up --build
FYI: I had to reinstall my linux distribution, but I guess it should not matter, it should install all that is needed, and I do not see any errors in the npm install step.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cms-dpoa/CMS_Trivia/issues/12, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJ5ZRFP34O7CHPSPORRK25TUPHOURANCNFSM5JLMJB3A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
No worries, I've found that out 💪 😃 It was just DashBoard -> Dashboard
Hello @JosueDavalos I wonder if you can quickly help me 😃
I would need to add a small thing as in #11 but when I try to build locally (without any modifications) I get
Do you have an idea why this happens?
I've done nothing else than
FYI: I had to reinstall my linux distribution, but I guess it should not matter, it should install all that is needed, and I do not see any errors in the
npm install
step.