Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Undefined offset: 0 in snippets/vue-index.php #2

Closed
nexflo opened this issue Aug 12, 2020 · 1 comment
Closed

Undefined offset: 0 in snippets/vue-index.php #2

nexflo opened this issue Aug 12, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@nexflo
Copy link

nexflo commented Aug 12, 2020

Fresh install PHP throws an error in vue-index:

snippets/vue-index.php

Removing the glob [0] makes it work in the pathToAsset function

return $root . basename(kirby()->roots()->index() . $root . $pattern);

@johannschopplich
Copy link
Owner

That's intentional. You have to build the app assets first for production (npm run build).

For development, you just have to run npm run start.

I have added an error status text which clarifies the need for bundling before/while deploying: No production assets found. You have to bundle the app first. Run npm run build. See cb82bea for more information on that.

Thanks for the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants