Giter Club home page Giter Club logo

docker-examples's Introduction

docker-examples

  • Drupal 9
  • Laravel
  • Symfony

docker-examples's People

Contributors

opdavies avatar

Watchers

 avatar

docker-examples's Issues

[Vue.js] Error on startup

app_1  | failed to load config from /app/vite.config.ts
app_1  | error when starting dev server:
app_1  | Error: Cannot find module 'vite'
app_1  | Require stack:
app_1  | - /app/vite.config.ts
app_1  | - /home/node/.config/yarn/global/node_modules/vite/dist/node/chunks/dep-80fe9c6b.js
app_1  | - /home/node/.config/yarn/global/node_modules/vite/dist/node/cli.js
app_1  | - /home/node/.config/yarn/global/node_modules/vite/bin/vite.js
app_1  |     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
app_1  |     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
app_1  |     at Module.require (node:internal/modules/cjs/loader:1005:19)
app_1  |     at require (node:internal/modules/cjs/helpers:102:18)
app_1  |     at Object.<anonymous> (/app/vite.config.ts:29:19)
app_1  |     at Module._compile (node:internal/modules/cjs/loader:1105:14)
app_1  |     at Object.require.extensions.<computed> [as .ts] (/home/node/.config/yarn/global/node_modules/vite/dist/node/chunks/dep-80fe9c6b.js:61973:20)
app_1  |     at Module.load (node:internal/modules/cjs/loader:981:32)
app_1  |     at Function.Module._load (node:internal/modules/cjs/loader:822:12)
app_1  |     at Module.require (node:internal/modules/cjs/loader:1005:19)
app_1  | failed to load config from /app/vite.config.ts

Composer error on initial load

Warning: require_once(/var/www/html/vendor/autoload_runtime.php): Failed to open stream: No such file or directory in /var/www/html/public/index.php on line 5

Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/autoload_runtime.php' (include_path='.:/usr/local/lib/php') in /var/www/html/public/index.php:5 Stack trace: #0 {main} thrown in /var/www/html/public/index.php on line 5

It loads correctly after running run composer install which is already run within the Dockerfile -

RUN composer install --no-dev --prefer-dist --optimize-autoloader
- but I believe that this is a volume mount issue where the local files are overriding the ones within the container and causing the vendor directory to be removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.