Loopback model uses unknown mixin: TimeStamp in docker container

I have a loopback3 api running locally using mixins from this npm package and works perfect but when I need to run it in a docker container (using docker-compose) for deploy purposes the loopback api crashes on start.

docker api service error

Error: Model "Price" uses unknown mixin: TimeStamp
api      |     at MixinProvider.applyMixin (/node_modules/loopback-datasource-juggler/lib/mixins.js:50:13)
api      |     at ModelBuilder.defineClass [as define] (/node_modules/loopback-datasource-juggler/lib/model-builder.js:649:27)
api      |     at Function.ModelClass.extend (/node_modules/loopback-datasource-juggler/lib/model-builder.js:447:35)
api      |     at Registry.createModel (/node_modules/loopback/lib/registry.js:122:25)
api      |     at /node_modules/loopback-boot/lib/executor.js:245:24
api      |     at Array.forEach (<anonymous>)
api      |     at defineModels (/node_modules/loopback-boot/lib/executor.js:229:23)
api      |     at setupModels (/node_modules/loopback-boot/lib/executor.js:197:3)
api      |     at execute (/node_modules/loopback-boot/lib/executor.js:40:3)
api      |     at bootLoopBackApp (/node_modules/loopback-boot/index.js:154:3)
api      |     at Object.<anonymous> (/app/server/server.js:28:1)
api      |     at Module._compile (module.js:653:30)
api      |     at Object.Module._extensions..js (module.js:664:10)
api      |     at Module.load (module.js:566:32)
api      |     at tryModuleLoad (module.js:506:12)
api      |     at Function.Module._load (module.js:498:3)
api      | [nodemon] app crashed - waiting for file changes before starting...


 "mixins": {
    "TimeStamp": {
      "required": false,
      "validateUpsert": true,
      "silenceWarnings": false

also tried

  "mixins": {
    "TimeStamp": true

api package.json

"dependencies": {
    "compression": "^1.0.3",
    "cors": "^2.5.2",
    "helmet": "^3.19.0",
    "loopback": "^3.26.0",
    "loopback-boot": "^2.6.5",
    "loopback-component-explorer": "6.2.0",
    "loopback-connector-mongodb": "4.2.0",
    "loopback-ds-timestamp-mixin": "3.4.1",
    "node-gyp": "^5.0.3",
    "rxjs": "^6.5.2",
    "serve-favicon": "^2.0.1",
    "strong-error-handler": "^3.0.0"
  "devDependencies": {
    "@mean-expert/loopback-sdk-builder": "^2.3.1",
    "eslint": "^3.17.1",
    "eslint-config-loopback": "^8.0.0"
  • docker-engine : 19.03.1
  • docker-compose: 1.24.1
  • docker-desktop:

I’ve worked on this last month and never had a problem. I tried to change ‘TimeStamp’ to ‘Timestamp’ as I saw in another post but this doesnt work neither.

Source: StackOverflow