You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the instructions to try and get the express example to run. When I run npm install, it runs dts2hx but produces a ton of errors like:
> Error: [TypeScript 3.7] Type 'Response' is not generic. (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/@types/express-serve-static-core/index.d.ts:68:14)
> Error: [TypeScript 3.7] Type 'Request' is not generic. (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/@types/express-serve-static-core/index.d.ts:81:10)
> Error: [TypeScript 3.7] Type 'Response' is not generic. (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/@types/express-serve-static-core/index.d.ts:82:10)
...
> Error: [TypeScript 3.7] ';' expected. (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/@types/express-serve-static-core/index.d.ts:363:84)
> Error: [TypeScript 3.7] ';' expected. (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/@types/express-serve-static-core/index.d.ts:378:13)
...
when trying to convert the modules express-serve-static-core and mime.
If I ignore those errors and attempt to build Server.hx via haxe build.hxml I get the following error: Server.hx:17: characters 31-36 : Class<express.Router> has no field call_ (Suggestion: call)
When I change call_ to call on that line, it builds. I can then run the server and see the Hello World page, but when I click on the /birds link I see:
at Layer.handle [as handle_request] (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:328:13)
at /Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:346:12)
at next (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:280:10)
at expressInit (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/middleware/init.js:40:5)
at Layer.handle [as handle_request] (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:328:13)
at /Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/Users/jesse/Development/src/bommer.io/addins/specs/scratch/dts2hx/examples/express/node_modules/express/lib/router/index.js:346:12)
The text was updated successfully, but these errors were encountered:
Following the instructions to try and get the express example to run. When I run npm install, it runs dts2hx but produces a ton of errors like:
when trying to convert the modules
express-serve-static-core
andmime
.If I ignore those errors and attempt to build Server.hx via
haxe build.hxml
I get the following error:Server.hx:17: characters 31-36 : Class<express.Router> has no field call_ (Suggestion: call)
When I change
call_
tocall
on that line, it builds. I can then run the server and see the Hello World page, but when I click on the /birds link I see:The text was updated successfully, but these errors were encountered: