Azure / Azure/azure-functions-host

Typescript function doesn't generate .js file [Intermittent]

Open
#1,593 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2k
Forks
483
Avg merge
2d 10h
Merged PRs (30d)
36

Description

1. Create a typescript function HttpTrigger-Typescript
2. click run on the top bar to execute it

Getting the following error on executing
```
2017-06-10T05:43:34.102 Exception while executing function: Functions.HttpTriggerTS1. mscorlib: Error: Cannot find module 'D:/home/site/wwwroot/HttpTriggerTS1/.output/HttpTriggerTS1/index.js'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at eval (eval at compileFunc (D:\Program Files (x86)\SiteExtensions\Functions\1.0.11002\bin\edge\double_edge.js:34:28), :1:80)
at compileFunc (D:\Program Files (x86)\SiteExtensions\Functions\1.0.11002\bin\edge\double_edge.js:35:16).
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by creating an HttpTrigger-Typescript function and clicking Run on the top bar. Start by checking the generated .output/HttpTriggerTS1/index.js path and the execution error; done means the JavaScript file is generated reliably and the function executes without the module-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, node.js, typescript
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.