Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNPM support for iisnode? #133

Open
luke-h1 opened this issue Feb 3, 2023 · 0 comments
Open

PNPM support for iisnode? #133

luke-h1 opened this issue Feb 3, 2023 · 0 comments

Comments

@luke-h1
Copy link

luke-h1 commented Feb 3, 2023

Hi, we're trying to migrate our monorepo from NPM & Lerna to PNPM & PNPM workspaces. So far everything has gone smoothly and works fine locally. When we try to deploy the monorepo to Azure app services via ARM templates we've experienced quite a few problems namely around transpilation errors which causes the windows app service to not startup properly (see below code snippets. It seems we're experiencing the same problem on windows & Linux app services). Is PNPM supported for use in Azure environments or is iisnode/Azure app services compatible with exclusively NPM?

2023-02-03T14:38:07.932350549Z > e******@0.1.0 start /home/site/wwwroot
2023-02-03T14:38:07.932369649Z > NODE_ENV=production node server.js
2023-02-03T14:38:07.932374249Z 
2023-02-03T14:38:08.434220079Z /home/site/wwwroot/node_modules/applicationinsights:1
2023-02-03T14:38:08.434279880Z .pnpm/a******@2.4.1/node_modules/applicationinsights
2023-02-03T14:38:08.434286380Z ^
2023-02-03T14:38:08.434290380Z 
2023-02-03T14:38:08.434294080Z SyntaxError: Unexpected token '.'
2023-02-03T14:38:08.434297580Z     at wrapSafe (internal/modules/cjs/loader.js:1001:16)
2023-02-03T14:38:08.434301080Z     at Module._compile (internal/modules/cjs/loader.js:1049:27)
2023-02-03T14:38:08.434304480Z     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
2023-02-03T14:38:08.434307880Z     at Module.load (internal/modules/cjs/loader.js:950:32)
2023-02-03T14:38:08.434311180Z     at Function.Module._load (internal/modules/cjs/loader.js:790:12)
2023-02-03T14:38:08.434314480Z     at Module.require (internal/modules/cjs/loader.js:974:19)
2023-02-03T14:38:08.434318080Z     at require (internal/modules/cjs/helpers.js:101:18)
2023-02-03T14:38:08.434321580Z     at Object. (/home/site/wwwroot/server.js:4:21)
2023-02-03T14:38:08.434325480Z     at Module._compile (internal/modules/cjs/loader.js:1085:14)
2023-02-03T14:38:08.434328880Z     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
Fri Feb 03 2023 15:55:37 GMT+0000 (Coordinated Universal Time): Application has thrown an uncaught exception and is terminated:
C:\home\site\wwwroot\node_modules\applicationinsights:1
.pnpm/[email protected]/node_modules/applicationinsights
^

SyntaxError: Unexpected token '.'
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\home\site\wwwroot\server.js:4:21)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
Application has thrown an uncaught exception and is terminated:
C:\home\site\wwwroot\node_modules\applicationinsights:1
.pnpm/[email protected]/node_modules/applicationinsights
^

SyntaxError: Unexpected token '.'
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\home\site\wwwroot\server.js:4:21)
    at Module._compile (node:internal/modules/cjs/loader:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant