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

OJS - Building local images Error #155

Closed
wi-mma opened this issue Mar 6, 2022 · 3 comments
Closed

OJS - Building local images Error #155

wi-mma opened this issue Mar 6, 2022 · 3 comments
Labels
bug Something isn't working outdated The issue refers to old versions and won't be fixed.

Comments

@wi-mma
Copy link

wi-mma commented Mar 6, 2022

Hello,

I have a problem to "Building local images" from the code introduction. I tried the statement (in my terminal): "docker build -t local/ojs:3_2_0-1 ." in the folder /versions/3_2_0-1/alpine/apache/php73 but I get the error in the picture.

If somebody could help me, I would appreciate it.

Error

@marcbria
Copy link
Collaborator

Hi @wi-mma

As you will see, we are in a middle of a refactoring process, so it all could/would change soon... hopefully moving to more stable image versions.

The error (No "exports" main defined") points no recent updates to the ui-library, so perhaps this issue is related with the Node version (as far as dockerfile don't use fixed versions).

If you are building locally, first thing I would try is upgrade your alpine to last version (or to a more recent one).
It will probably let you take the last node version.

If not, you can also modify your dockerfile to force an update of your npm adding a simple:
$ npm update

Please, check any of both and let us know how it worked.

Cheers,
m.

@luisfelipe3d
Copy link

Hi @wi-mma,

The easy way to solve your problem is change npm to yarn:

ENV BUILDERS \
        git  \
        nodejs \
        yarn

and
yarn && yarn run build

Cheers,
Luis Leal.

@marcbria
Copy link
Collaborator

@wi-mma do you mind to confirm that updating the npm did the job?
If not, did the problem disappears moving to yarn?

Thanks for your feedback,
m.

@marcbria marcbria added the bug Something isn't working label Apr 10, 2022
@marcbria marcbria added the outdated The issue refers to old versions and won't be fixed. label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working outdated The issue refers to old versions and won't be fixed.
Projects
None yet
Development

No branches or pull requests

3 participants