0

I learning monorepo with nx, and I submodule my existing repo and put it in my apps folder, and i setting up with javascript style using nx generate with --js, because my existing file use javascript and HapiJS. then I create a dockerfile to run my application and success to build it, but when I see the container logs in my app, I got an error, like

TypeError: Cannot read properties of undefined (reading 'register')
    at module.exports.internals.Server.internals.Plugin.register (/Users/macbook/Documents/coding/apps/express-repo/node_modules/hapi/lib/plugin.js:212:29)

It's always and always, some function always got undefined, it is because the typescript compiles? Does anyone know how to resolve it? please help me guys.. thank you... That's a simple way to run nx without compiling to ts?

The answer with example in code POV

providerZ
  • 315
  • 11
werich
  • 1
  • 4

0 Answers0