inikoo / aiku

White-label opinionated ERP web app
https://inikoo.github.io/aiku/
GNU Affero General Public License v3.0
21 stars 1 forks source link

Build public-aiku fails if ssr #545

Closed sentry-io[bot] closed 4 weeks ago

sentry-io[bot] commented 1 month ago

package.json line 9

✅ "build.aiku-public": "vite build --config vite.aiku-public.config.js" (but we loose ssr)

❌ "build.aiku-public": "vite build --config vite.aiku-public.config.js && vite build --config vite.aiku-public.config.js --ssr",

Maybe is related to the github pages becuse i deleted this line : "build.aiku-public-pages": "vite build --config vite.aiku-public.config.js", that i thikn is doing nothung

========================== InvalidArgumentException: View [app] not found.

Sentry Issue: AIKU-43

InvalidArgumentException: View [app] not found.
  File "/app/Exceptions/Handler.php", line 109, in App\Exceptions\Handler::render
    ->toResponse($request)
  File "/public/index.php", line 51
    $response = $kernel->handle(
...
(21 additional frame(s) were not displayed)
aqordeon commented 1 month ago

@inikoo this one is already solved, right?

inikoo commented 1 month ago

@aqordeon no, i just removed

&& vite build --config vite.aiku-public.config.js --ssr

you need to put it back and check why is failing when present

aqordeon commented 1 month ago

I've pull and put that code back, the build is success and nothing error. @inikoo