iTwin / imodel-unity-example

Example demonstrating use of iTwin.js with a Unity application
MIT License
21 stars 10 forks source link

Port No #3

Closed ashish1014 closed 4 years ago

ashish1014 commented 4 years ago

I am adding port from tsconfig file as { "extends": "./node_modules/@bentley/build-tools/tsconfig-base.json", "portNo":3001, "compilerOptions": { "skipLibCheck": true, "outDir": "./lib", "baseUrl": "./node_modules/", "types": [ "node" ] }, "include": [ "./src/*/.ts" ] }

and add in main.ts *import as configData from "../tsconfig.json";** Getting following error Cannot find module '../tsconfig.json'. Consider using '--resolveJsonModule' to import module with '.json' extension

want to use port mentined in tsconfig and use for server start

mgooding commented 4 years ago

tsconfig.json is used to configure the TypeScript compiler. For configuring the server at runtime, I'd suggest either adding another command line argument or something in configuration.ts.