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

Can't start dev from starter app using pnpm #4144

Closed
pencilcheck opened this issue Sep 24, 2024 · 4 comments
Closed

Can't start dev from starter app using pnpm #4144

pencilcheck opened this issue Sep 24, 2024 · 4 comments
Labels
scope: toolpad-studio Abbreviated to "studio" status: waiting for author Issue with insufficient information

Comments

@pencilcheck
Copy link

pencilcheck commented Sep 24, 2024

Steps to reproduce

Link to live example: (required)

Steps:

  1. Follow the steps and create a starter app from the website
  2. Run pnpm dev
  3. Error
╰─λ pnpm toolpad-studio:dev                                                                                                                                0 (8.904s)

> [email protected] toolpad-studio:dev /Users/user/Projects/my-toolpad-studio-app
> toolpad-studio dev ./my-toolpad-app

info  - starting Toolpad Studio application in dev mode...
(node:16357) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info  - Initializing .gitignore file
info  - loaded env file "/Users/user/Projects/my-toolpad-studio-app/.env" with keys DATABASE_URL
ready - Toolpad Studio project /Users/user/Projects/my-toolpad-studio-app/my-toolpad-app ready on http://localhost:3000/
App dev server failed 1
 ELIFECYCLE  Command failed with exit code 1

Current behavior

╰─λ pnpm toolpad-studio:dev                                                                                                                                0 (8.904s)

> [email protected] toolpad-studio:dev /Users/user/Projects/my-toolpad-studio-app
> toolpad-studio dev ./my-toolpad-app

info  - starting Toolpad Studio application in dev mode...
(node:16357) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info  - Initializing .gitignore file
info  - loaded env file "/Users/user/Projects/my-toolpad-studio-app/.env" with keys DATABASE_URL
ready - Toolpad Studio project /Users/user/Projects/my-toolpad-studio-app/my-toolpad-app ready on http://localhost:3000/
App dev server failed 1
 ELIFECYCLE  Command failed with exit code 1

Expected behavior

To start website on localhost:3000

Context

Just trying out the example, only tried pnpm and npm, and pnpm doesn't work.

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
Need to install the following packages: @mui/[email protected] Ok to proceed? (y)

System:
OS: macOS 14.4.1
Binaries:
Node: 22.7.0 - /opt/homebrew/bin/node
npm: 10.8.2 - /opt/homebrew/bin/npm
pnpm: 8.2.0 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 124.0.6367.80
Edge: 120.0.2210.61
Safari: 17.4.1
npmPackages:
@toolpad/studio: ^0.7.0 => 0.7.0
@types/react: ^18.3.3 => 18.3.3
react: ^18.3.1 => 18.3.1
react-dom: ^18.3.1 => 18.3.1
typescript: ^5.5.3 => 5.5.3

Search keywords: App dev server failed 1

@pencilcheck pencilcheck added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 24, 2024
@Janpot
Copy link
Member

Janpot commented Sep 24, 2024

I ran

  • pnpm create toolpad-app --studio my-toolpad-app
  • cd my-toolpad-app
  • pnpm dev
    This is my output
> toolpad-studio dev

info  - starting Toolpad Studio application in dev mode...
info  - Initializing .gitignore file
info  - loaded env file "/Users/janpotoms/Desktop/my-toolpad-app/.env" with keys 
ready - Toolpad Studio project /Users/janpotoms/Desktop/my-toolpad-app/toolpad ready on http://localhost:3000/
ready - built functions.ts: 0 error(s), 0 warning(s)

I can open the app in the browser and drag and drop components.

In order to help you further with this issue, please provide a full reproduction under the form of a github repository, or a zip file.

@Janpot Janpot added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 24, 2024
@pencilcheck
Copy link
Author

I ran

  • pnpm create toolpad-app --studio my-toolpad-app
  • cd my-toolpad-app
  • pnpm dev
    This is my output
> toolpad-studio dev

info  - starting Toolpad Studio application in dev mode...
info  - Initializing .gitignore file
info  - loaded env file "/Users/janpotoms/Desktop/my-toolpad-app/.env" with keys 
ready - Toolpad Studio project /Users/janpotoms/Desktop/my-toolpad-app/toolpad ready on http://localhost:3000/
ready - built functions.ts: 0 error(s), 0 warning(s)

I can open the app in the browser and drag and drop components.

In order to help you further with this issue, please provide a full reproduction under the form of a github repository, or a zip file.

It is literally
pnpm create toolpad-app --studio my-toolpad-app

I don't know what else to give you, it is the default app from toolpad-app creator

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Sep 24, 2024
@Janpot
Copy link
Member

Janpot commented Sep 24, 2024

I don't know what else to give you

The contents of your /Users/user/Projects/my-toolpad-studio-app folder may help me debug this problem. You may leave out node_modules folders and build artifacts. Easiest would be if you'd just push it to github.

@Janpot Janpot added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 24, 2024
Copy link

github-actions bot commented Oct 2, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@github-actions github-actions bot closed this as completed Oct 2, 2024
@oliviertassinari oliviertassinari added the scope: toolpad-studio Abbreviated to "studio" label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: toolpad-studio Abbreviated to "studio" status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants