Re: [lime] How to test limeapp development versions

Supprimer ce message

Répondre à ce message
Auteur: Selan Kon
Date:  
À: libremesh
Sujet: Re: [lime] How to test limeapp development versions
So, I (partially) found what happen.

- Why yarn doesn't build?

The brief thing was on my computer yarn works properly because the packs
where already installed.

My stupid thing was that until now we are working with npm which uses
package-lock.json, and no yarn.lock file is already generated, so.

**Keep using npm instead of yarn** until i do enough tests to
definitively migrate to yarn. Basically, follow previous guide but
changing yarn command by npm: npm install, and, npm run dev

And, fyi, I am working on a fix to use node 18, still working on it but
I get the build already :) https://github.com/libremesh/lime-app/pull/401

I will refactor the guide on the first mail of this thread asap.

- Why the artifact are still the same?

I don't know what is happening here, I am reading documentation and
seems that some kind of artifact cache is made, so I tried a quickfix,
but it is still not working, i have to research deeper.

If you know somebody that can help me with github actions (which are not
my best skills) I will be grateful.

Check more info over here:
https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts#comparing-artifacts-and-dependency-caching


pony via LibreMesh:
> `yarn install --ignore-engines` worked, but now when I run `yarn build` or `yarn dev`, I get this error:
>
> $ preact build --no-prerender
> /home/pony/lime-app/node_modules/ora/index.js:7
> const stripAnsi = require('strip-ansi');
>                    ^

>
> Error [ERR_REQUIRE_ESM]: require() of ES Module /home/pony/lime-app/node_modules/strip-ansi/index.js from /home/pony/lime-app/node_modules/ora/index.js not supported.
> Instead change the require of /home/pony/lime-app/node_modules/strip-ansi/index.js in /home/pony/lime-app/node_modules/ora/index.js to a dynamic import() which is available in all CommonJS modules.
>      at Object.<anonymous> (/home/pony/lime-app/node_modules/ora/index.js:7:19)
>      at Object.<anonymous> (/home/pony/lime-app/node_modules/preact-cli/src/commands/create.js:1:75)
>      at Object.<anonymous> (/home/pony/lime-app/node_modules/preact-cli/src/commands/index.js:2:20)
>      at Object.<anonymous> (/home/pony/lime-app/node_modules/preact-cli/src/index.js:17:18) {
>    code: 'ERR_REQUIRE_ESM'
> }
> error Command failed with exit code 1.
> info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

>
> Downloading the built lime-app works now. However, it is identical to the one that I have built from the develop branch.
>
>
> On Tuesday, 20 February 2024 17:30:34 CET pony via LibreMesh wrote:
>> On Tuesday, 20 February 2024 17:09:29 CET Selan Kon via LibreMesh wrote:
>>> Is strange because the actions are building with node version 16.. Which
>>> branch are you on?
>>
>> I'm on branch "test-implement-new-landing".
>>
>>
>
>
>