NativePHP / laravel

Laravel wrapper for the NativePHP framework
https://nativephp.com
MIT License
3.17k stars 164 forks source link

SyntaxError: Unexpected token '.' #150

Closed korangcity closed 6 months ago

korangcity commented 1 year ago

What happened?

When I run php artisan native:serve , I see

Starting NativePHP dev server… Fetching latest dependencies… Starting NativePHP app…

NativePHP@1.0.0 dev electron-vite dev --watch

/home/mahdi/Desktop/nativePhp/vendor/nativephp/electron/resources/js/node_modules/vite/dist/node-cjs/publicUtils.cjs:3314 enabled = !!DEBUG?.includes(ns); ^

SyntaxError: Unexpected token '.'

How to reproduce the bug

This problem does not let me to run app

Package Version

1.0.0

PHP Version

8.1.2-1ubuntu2.13

Laravel Version

10.17.1

Node Version

v12.22.9

Which operating systems does with happen with?

Linux

Notes

How can I fix this problem?

joffreycarle commented 1 year ago

A few hints here:

simonhamp commented 6 months ago

Please update to nativephp/electron v0.6 and try again.