Comments (7)
Can you take a look (please :))? @Jefiozie
from azure-func-http.
Sure, I will try and do my best to check it in upcoming days.
from azure-func-http.
@Jefiozie the actions that fixed it for me in monorepo/webpack mode:
- Overriding the webpack configuration with the following:
module.exports = function (options) {
return {
...options,
entry: __dirname + '/main/index.ts',
output: {
libraryTarget: 'commonjs2',
filename: 'main/index.js'
},
};
};
- In the main.azure.ts file, adding the AzureHttpRouter to the create method:
const app = await NestFactory.create(AppModule, new AzureHttpRouter());
from azure-func-http.
Thank you for your research, I hope I can find the time somewhere in the upcoming 2 days to resolve it.
from azure-func-http.
Hi @drieshooghe,
Could you tell me how you generated the project/ nest workspace? I would like to create an identical setup to test some stuff locally.
Thanks!
from azure-func-http.
Hi @drieshooghe,
I did some test and have some findings, I think we have a different setup so this will not completely be the same on your side as I believe. However, maybe it will help you for now as I think we need to change the schematics a bit (but I don't know how yet to what 😉)
- I generated a new nest project with
nest new projectA
- I created a monorepo by running
nest generate app projectA
- I've added the
nestjs/azue-func-http
by runningnest add @nestjs/azure-func-http --project projectA
- Now all the specific azure files will be placed at your project folder
- In the
nest-cli.json
I've changed thecompilerOptions-> webpack
setting fromtrue
tofalse
- In the
function.json
file I made the adjustment to thescriptFile
to be something like"../../../../dist/apps/<YOUR APP>/main/index.js"
- I run
nest build projectA
- In the terminal I navigate to the folder where the project is so something like
cd apps/<YOUR PROJECT>/src
- When I run
npx func host start
it should work.
I can see that this is not the behavior you are looking for but I need some more time digging into this issue and find a correct strategy to resolve it. I like the webpack part but I need to see where it fits with all other aspects of the structure.
from azure-func-http.
This should be fixed now. Let me know if you face any further issues
from azure-func-http.
Related Issues (20)
- AzureHttpRouter constructor throws an exception HOT 3
- enable server side event support HOT 2
- Cronjobs support HOT 1
- Pls update documentation that this project is abandoned / deprecated HOT 1
- Error: Cannot find module '@schematics/angular/utility/dependencies' HOT 1
- Action Required: Fix Renovate Configuration
- TRouter constructor is undefined at runtime in AzureHttpRouter HOT 7
- Dependency Dashboard
- Response Headers are Not Matching the NEST Response when publish to Azure Function HOT 1
- package fails to install HOT 1
- exclude path not working in Azure function HOT 1
- CORS does not work with azure-func-http HOT 1
- class-validator is not working
- Make nest openapi impl better with azurefx HOT 1
- swagger-ui* not loading HOT 1
- Peer dependencies allows @azure/functions v1 or v3 but not v2 HOT 5
- MonoRepo Support HOT 1
- Azure Functions v4 support HOT 4
- Project dependencies
- Could not resolve dependency with @nestjs/common 9.0.0 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-func-http.