sipg-isr / drafter

A tool for creating distributed system topologies
0 stars 0 forks source link

Unable to start server with yarn on branch main #6

Closed DuarteMRAlves closed 2 years ago

DuarteMRAlves commented 3 years ago

Description

The start command fails when trying to run with yarn on branch main.

On the develop branch this does not happen.

Since this happens only on the main branch, there may be some version of the packages that is incompatible with these node and yarn versions.

On a previous version, the issue happened both on the develop and main branches.

Steps to Reproduce

The following commands were executed:

> yarn --dev
yarn install v1.22.17
[1/4] šŸ”  Resolving packages...
[2/4] šŸšš  Fetching packages...
[3/4] šŸ”—  Linking dependencies...
warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
[4/4] šŸ”Ø  Building fresh packages...
āœØ  Done in 13.99s.
> yarn start
yarn run v1.22.17
$ react-scripts start
node:internal/modules/cjs/loader:488
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/duartealves/IST/AI4EU/Drafter/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:416:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:669:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/duartealves/IST/AI4EU/Drafter/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

Node.js v17.0.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Software versions:

The following noda and yarn versions are being used:

$ node --version
v17.0.1

$ yarn --version
1.22.17
DuarteMRAlves commented 3 years ago

Also, the yarn.lock file has the following differences: Screenshot 2021-11-03 at 13 51 23

Maybe the issues are in these package versions.

ndrewtl commented 3 years ago

I believe I fixed a package inconsistency, which is why the develop branch is working but main isn't. I'll merge develop into main when I complete the next set of features, which hopefully shouldn't be long

DuarteMRAlves commented 3 years ago

Okay then, yes I believe that will fix it. When you merge into main notify me and I will test it on my computer.

ndrewtl commented 2 years ago

@DuarteMRAlves just updated the branch main. Could you try and reproduce this bug again?

DuarteMRAlves commented 2 years ago

@ndrewtl I have tested it and it is working just fine šŸ‘ . Feel free to close this issue.