zalmoxisus / crossbuilder

Building web, Electron, Cordova and Chrome apps, and cross-browser extensions with React, Redux and Webpack. "Write once, deploy everywhere" concept in practice.
MIT License
484 stars 50 forks source link

npm install && npm run dev shows error....how to resolve it? #56

Closed atsushi729 closed 3 years ago

atsushi729 commented 3 years ago

image

atsushi729 commented 3 years ago

I realized if Laravel version is over 6.0, bootstrap is not set up initially. that's why error had happen. In order to solve this problem, I added "use App\Http\Controllers\BlogController;" into BlogController because my error sentence was displayed follows "Target class BlogController does not exist". after that, I changed routing at web.php.

Laravel の versionが6.0以上の場合、bootstrapが入っていないため、インストールすると、エラーが表示されるということが分かった。 エラー文として、「Target class BlogController does not exist」のエラーが出たのでBlogControllerにuse App\Http\Controllers\BlogController;で呼び出してあげて、web.phpでルーティングを変更することで、無事読み込むことができた。