Skip to content

Yarn and Vite command arguments problem #110

Description

@rgilsimoes

When using yarn as the package manager and Vite the extension command arguments are not being passed to Vite:

yarn exec yarn run ionic:serve -- --host --port=8100
VITE v7.3.6 ready in 352 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose

PREVIOUS: (v 2.1.6)

yarn exec vite --host --port=8100
VITE v7.3.6 ready in 324 ms
[wn] Remote logging service has started at http://192.168.1.215:8942
➜ Local: http://localhost:8100/
➜ Network: http://192.168.1.215:8100/
➜ Network: http://192.168.1.175:8100/

Probable cause:

Version 2.2.9
Fix build command to use wn:build, then ionic:build, then build from package.json for all framework types, instead of hardcoding vite build
Fix serve command to use wn:serve, then ionic:serve, then serve/dev/start from package.json for all framework types, instead of hardcoding vite

Using:

  • yarn 4.7.1
  • vite 7

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions