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

running turbo dev fails #146

Open
jmikedupont2 opened this issue Sep 11, 2024 · 12 comments
Open

running turbo dev fails #146

jmikedupont2 opened this issue Sep 11, 2024 · 12 comments

Comments

@jmikedupont2
Copy link

jmikedupont2 commented Sep 11, 2024

running pnpm turbo dev

Need to install the following packages:
jsonresume-theme-full:dev: [email protected]
@jsonresume/theme-stackoverflow:dev: info => Modifying Create React App rules.
@jsonresume/theme-stackoverflow:dev: info => Using default Webpack5 setup
@jsonresume/theme-stackoverflow:dev: <i> [webpack-dev-middleware] wait until bundle finished
@jsonresume/theme-stackoverflow:dev: 10% building [email protected][email protected]/node_modules/@pmmmwh/react-re@jsonresume/theme-stackoverflow:dev: 24% building ...ules/.pnpm/[email protected]_@[email protected][email protected]/no@jsonresume/theme-stackoverflow:dev: 24% building ..../node_modules/.pnpm/[email protected][email protected]/node_m@jsonresume/theme-stackoverflow:dev: 31% building ...oader ../../node_modules/.pnpm/[email protected][email protected]/n@jsonresume/theme-stackoverflow:dev: 31% building ...rt loader ../../node_modules/.pnpm/[email protected][email protected]@jsonresume/theme-stackoverflow:dev: 31% building ...dules/.pnpm/[email protected][email protected][email protected]/nod@jsonresume/theme-stackoverflow:dev: 29% building import loader ../../node_modules/.pnpm/[email protected]/node_modules/u@jsonresume/theme-stackoverflow:dev: 77% sealing module and chunk tree optimization PersistentChildCompilerSingletonPlu@jsonresume/theme-stackoverflow:dev: 

ERROR in [eslint] Plugin "react" was conflicted between ".eslintrc.cjs » @repo/eslint-config-custom » eslint-config-next" and "BaseConfig » /mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/[email protected]_@[email protected]_@babel+plugin-transform-react-_2crgda7qjvads5wzs3lbc6kfeq/node_modules/eslint-config-react-app/base.js".
@jsonresume/theme-stackoverflow:dev:

@jsonresume/theme-stackoverflow:dev: preview compiled with 1 error

@jsonresume/theme-stackoverflow:dev: <i> [webpack-dev-middleware] wait until bundle finished
@jsonresume/theme-stackoverflow:dev: 10% building [email protected][email protected]/node_modules/@pmmmwh/react-re@jsonresume/theme-stackoverflow:dev: 24% building ...ules/.pnpm/[email protected]_@[email protected][email protected]/no@jsonresume/theme-stackoverflow:dev: 24% building ..../node_modules/.pnpm/[email protected][email protected]/node_m@jsonresume/theme-stackoverflow:dev: 31% building ...oader ../../node_modules/.pnpm/[email protected][email protected]/n@jsonresume/theme-stackoverflow:dev: 31% building ...rt loader ../../node_modules/.pnpm/[email protected][email protected]@jsonresume/theme-stackoverflow:dev: 31% building ...dules/.pnpm/[email protected][email protected][email protected]/nod@jsonresume/theme-stackoverflow:dev: 29% building import loader ../../node_modules/.pnpm/[email protected]/node_modules/u@jsonresume/theme-stackoverflow:dev: 77% sealing module and chunk tree optimization PersistentChildCompilerSingletonPlu@jsonresume/theme-stackoverflow:dev: ERROR in [eslint] Plugin "react" was conflicted between ".eslintrc.cjs » @repo/eslint-config-custom » eslint-config-next" and "BaseConfig » /mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/[email protected]_@[email protected]_@babel+plugin-transform-react-_2crgda7qjvads5wzs3lbc6kfeq/node_modules/eslint-config-react-app/base.js".
@jsonresume/theme-stackoverflow:dev:
@jsonresume/theme-stackoverflow:dev: preview compiled with 1 error
@jsonresume/theme-stackoverflow:dev: WARN Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@jsonresume/theme-stackoverflow:dev: WARN Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@jsonresume/theme-stackoverflow:dev: 99% end closing watch compilationWARN Force closed preview build
@jsonresume/theme-stackoverflow:dev: ERR! SB_BUILDER-WEBPACK5_0003 (WebpackCompilationError): There were problems when compiling your code with Webpack.
@jsonresume/theme-stackoverflow:dev: ERR! Run Storybook with --debug-webpack for more information.
@jsonresume/theme-stackoverflow:dev: ERR!     at starter (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@storybook/builder-webpack5/dist/index.js:1:6698)
at starter.next (<anonymous>)
@jsonresume/theme-stackoverflow:dev: ERR!     at Module.start (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@storybook/builder-webpack5/dist/index.js:1:8727)
@jsonresume/theme-stackoverflow:dev: ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@jsonresume/theme-stackoverflow:dev: ERR!     at async storybookDevServer (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected]/node_modules/@storybook/core-server/dist/index.js:35:7062)
@jsonresume/theme-stackoverflow:dev: ERR!     at async buildDevStandalone (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected]/node_modules/@storybook/core-server/dist/index.js:48:2786)
@jsonresume/theme-stackoverflow:dev: ERR!     at async withTelemetry (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected]/node_modules/@storybook/core-server/dist/index.js:35:3422)
@jsonresume/theme-stackoverflow:dev: ERR!     at async dev (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected]/node_modules/@storybook/cli/dist/generate.js:434:400)
@jsonresume/theme-stackoverflow:dev: ERR!     at async Command.<anonymous> (/mnt/data1/nix/time/2024/09/11/json-crypto-wallet.org/node_modules/.pnpm/@[email protected]/node_modules/@storybook/cli/dist/generate.js:436:225) {
@jsonresume/theme-stackoverflow:dev: ERR!   data: { errors: [ [Object] ] },
@jsonresume/theme-stackoverflow:dev: ERR!   documentation: false,
@jsonresume/theme-stackoverflow:dev: ERR!   fromStorybook: true,

@levino
Copy link
Collaborator

levino commented Sep 12, 2024

I am not sure that turbo dev is supported. What did you want to do? Do the changes in #145 fix this particular issue? If so, there might still be other issues with the command. I think it is better to run only the dev script of the package you want to change.

@jmikedupont2
Copy link
Author

jmikedupont2 commented Sep 12, 2024

I am just following the readme,

To start all applications:

pnpm turbo dev

I worked around this by removing the custom eslint totally. #147 here are my changes, this bug went away.
This is my first time ever working with eslint and storybrook so please excuse my totall ignorance of all standards.

@levino levino changed the title v: ERROR in [eslint] Plugin "react" was conflicted between ".eslintrc.cjs running turbo dev fails Sep 12, 2024
@levino
Copy link
Collaborator

levino commented Sep 12, 2024

I can reproduce the issue. I think we only have a dev script in four packages atm:

  • registry
  • homepage2
  • @jsonresume/stack-overflow
  • jsonresume-theme-full

It seems to me the registry and homepage2 do run fine.

jsonresume-theme-full has a problematic dev script which should be removed:

"dev": "npx livereloadx -s -p 35729 dev"

It tries to use npx to install livereloadx on the fly and run it. This is a no no for me. livereloadx should be a development dependency of jsonresume-theme-full. Since user confirmation is needed to allow the installation of livereloadx, the script hangs when run via turbo. Even it if were to fail, I am not sure if it be useful for the overall stack. I let the script install livereloadx locally and then the script succeeds but does not provide anything useful on the web server. The readme also references non existent files live dev/index.html etc. I think a lot of stuff has changed in the package and the people doing the changes forgot to update the Readme and the scripts. Also the migration to this monorepo here has been done rather sloppily, probably because of time constraints. I would for now just remove all the scripts from the package.

Now the dev script of @jsonresume/theme-stackoverflow (which is maintained by myself) starts a storybook server for the react components used in the theme. This is also irrelevant for the overall stack, as long as the build script works, which it does.

To dos

So what should we do now? I recommend the following and would like a confirmation from @thomasdavis:

  • Remove the support and mentioning of turbo dev on a global level. I think it makes little sense for this to be supported. Lets imagine we have 20 themes which all have a storybook which starts when running the dev script. They would all try to run on port 6006. What is more important is to make build a dependency for dev. So if one would run turbo dev in package A and packages B and C are dependencies of package A, then turbo would first (try to) build packages B and C before starting the dev script in package A. Maybe we could add a dev script in the root package.json which does something like echo "Please run the dev scripts individually" && exit 1;.
  • Remove the scripts and the Readme in jsonresume-theme-full since it is all outdated and makes little sense (the Readme even talks of installing node 15 and using npm etc.)
  • Fix the dev script in @jsonresume/theme-stackoverflow. fwiw: I will just do that without waiting for confirmation.

@levino
Copy link
Collaborator

levino commented Sep 12, 2024

So for me and as I hoped, #145 fixes the broken dev script of @jsonresume/theme-stackoverflow. Once #145 has been merged, the last task in above list should be fixed. @thomasdavis could you please review and approve #145?

@jmikedupont2
Copy link
Author

https://github.com/meta-introspector/json-crypto-wallet.org/actions/runs/10832551866 I have gotten my version to finally lint and build by removing more eslint stuff.

@levino
Copy link
Collaborator

levino commented Sep 13, 2024

I am sorry, I do not see how this is related.

@jmikedupont2
Copy link
Author

This is related because it's a fork of the code I try to get it run I had to make some changes to get it to run I was trying to get the GitHub actions to run and I encountered all types of difficulties and I documented some of those so this is the general Improvement and some things that have to be fixed for this project but I did spend some time on it and as a new user it was hard to get this thing to deploy or run in the GitHub actions

@levino
Copy link
Collaborator

levino commented Sep 13, 2024

Ah, okay. json-crypto-wallet is a surprising name for a fork. Please create issues and PRs to this repo here to get support. I cannot provide support for forks.

Once you have made a PR, I am happy to discuss improvements. However in your past PRs I saw a certain mixture of concerns (adding new buttons and fixing ci scripts in the same PR). It will be easier if you make multiple PRs, one for each topic. Also please create issues before creating PRs so we can discuss the tasks first before looking at the solutions.

@jmikedupont2
Copy link
Author

my plan is to add a set of crypto wallet to mix so that the users can accept and send payments and host them in github secrets.
We can close this issue because i resolved the open issues.

@levino
Copy link
Collaborator

levino commented Sep 13, 2024

I am happy that your issues have been fixed. The issue you described still persists here, so I will keep the issue open. Thank you for finding the issue for us.

@levino levino reopened this Sep 13, 2024
@thomasdavis
Copy link
Member

I have been on a holiday, let me digest this and get back to it.

@levino
Copy link
Collaborator

levino commented Sep 23, 2024

Good morning @thomasdavis,
I hope you had a good start after the vacation. Please have a look and let's work on closing this, if you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants