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 generate assets by using angular #591

Open
Excel1 opened this issue Feb 19, 2024 · 1 comment
Open

Can´t generate assets by using angular #591

Excel1 opened this issue Feb 19, 2024 · 1 comment

Comments

@Excel1
Copy link

Excel1 commented Feb 19, 2024

I installed the dependency like written in the ReadMe.md. "@capacitor/assets": "^3.0.4"

Im using Angular with Ionic/Capacitor and my folder structure looks like following:

  • MyApp
    -- src
    --- assets
    -- android
    -- ios
    -- www

Now i wanted to generate my assets but by using npx @capacitor/assets generate --android

Asset directory not found at ... Use --asset-path to specify a specific directory containing assets

Now with npx @capacitor/assets generate --android --asset-path MyPath

error: unknown option '--asset-path'

If i go into my folder /src and try it again npx @capacitor/assets generate --android

No platforms found, exiting

Now using without android it works but only generate assets for pwa.

@Excel1
Copy link
Author

Excel1 commented Feb 19, 2024

Work around. Create a new asset folder with the assets directly in MyApp folder.

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

1 participant