module - typescript require() needs to include the folder the file is in - sometimes -
I have a case where I was imported: import docHeader = Requiring ('doc-header'); Import list body = requires ('list-body'); and failed to say that they were unable to list the JS file and URLs were missing. So I changed them to: import docHeader = required ('document / doctor-header'); Import list body = requires ('document / list-body'); The thing is, I have the file setup / call stack in this file document folder. layout / worker-api.ts: import document = required ('document / document'); // ... var doctor = new document Document (); Doc.deserialize (results.document); layout / document / document.ts: requires import docHeader = ('document / doctor-header'); Import list body = requires ('document / list-body'); // ... export class document {public guide: string; Public Doctor Header: docHeader.DocHeader; Public body: listBody.ListBody; Other files: Layout / Document / Doctor-Header. Layout / Documen...