Open diberry opened 1 year ago
@diberry The build will happen automatically if you run npm start
, or if you F5 from VS Code, but it won't happen automatically if you run func start
- this is by design
@ejizba I ran npm start - you can see from the screenshot the tsc or npm build wasn't called for the npm start command.
I'm seeing func start in your screenshot, not npm start
I'm following the commandline quickstart for the new Node runtime from inside a VSCode typescript dev container. I've installed core tools (4.0.5085) and @azure/functions (^4.0.0-alpha.1). I did choose Ts instead of Js when creating the app but I didn't think it would matter. The npm scripts has the correct start and prestart to build tsc.
I created the local HTTP function which was successful and updated the file to include my own route.
Start the function with
func start
.Core tools is looking for *.js but the build isn't working so no JS files. Why isn't the build getting called? If I build first then start the function, it works.