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
Describe the bug
After creating monorepo blank workspace not able to create serverless lambda app I am getting below error
nx g @flowaccount/nx-serverless:api-serverless --name=myapi --provider=aws
✔ In which directory should the serverless api be generated? · test
✔ Are you using the latest nx version? (Y/n) · true
✔ Which region do you want to default your deployment to? · ap-southeast-1
TypeError: workspace_2.toFileName is not a function
at normalizeOptions (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:168:26)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:181:25
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
at new Promise ()
at Object.__awaiter (/mnt/c/work/nxpoc/node_modules/tslib/tslib.js:113:16)
at apiGenerator (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:180:20)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/node_modules/@nrwl/devkit/src/utils/invoke-nx-generator.js:53:30
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
workspace_2.toFileName is not a function
To Reproduce
Steps to reproduce the behavior:
I am using WSL ubuntu 20.
I ran this command below
npx create-nx-workspace monorepopoc
npm install @flowaccount/nx-serverless --save-dev
nx g @flowaccount/nx-serverless:api-serverless --name=myapi --provider=aws
Expected behavior
It should create a serverless lambda folder withhin the apps folder
Screenshots
✔ In which directory should the serverless api be generated? · apps
✔ Are you using the latest nx version? (Y/n) · true
✔ Which region do you want to default your deployment to? · ap-southeast-1
TypeError: workspace_2.toFileName is not a function
at normalizeOptions (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:168:26)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:181:25
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
at new Promise ()
at Object.__awaiter (/mnt/c/work/nxpoc/node_modules/tslib/tslib.js:113:16)
at apiGenerator (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:180:20)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/node_modules/@nrwl/devkit/src/utils/invoke-nx-generator.js:53:30
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75 workspace_2.toFileName is not a function
The text was updated successfully, but these errors were encountered:
Describe the bug
After creating monorepo blank workspace not able to create serverless lambda app I am getting below error
nx g @flowaccount/nx-serverless:api-serverless --name=myapi --provider=aws
✔ In which directory should the serverless api be generated? · test
✔ Are you using the latest nx version? (Y/n) · true
✔ Which region do you want to default your deployment to? · ap-southeast-1
TypeError: workspace_2.toFileName is not a function
at normalizeOptions (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:168:26)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:181:25
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
at new Promise ()
at Object.__awaiter (/mnt/c/work/nxpoc/node_modules/tslib/tslib.js:113:16)
at apiGenerator (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:180:20)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/node_modules/@nrwl/devkit/src/utils/invoke-nx-generator.js:53:30
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
workspace_2.toFileName is not a function
To Reproduce
Steps to reproduce the behavior:
Package.json
{
"name": "nxpoc",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "nx serve",
"build": "nx build",
"test": "nx test"
},
"private": true,
"dependencies": {},
"devDependencies": {
"@flowaccount/nx-serverless": "^1.1.2",
"@nrwl/cli": "13.4.6",
"@nrwl/tao": "13.4.6",
"@nrwl/workspace": "13.4.6",
"@types/node": "16.11.7",
"prettier": "^2.3.1",
"typescript": "~4.4.3"
}
}
Expected behavior
It should create a serverless lambda folder withhin the apps folder
Screenshots
✔ In which directory should the serverless api be generated? · apps
✔ Are you using the latest nx version? (Y/n) · true
✔ Which region do you want to default your deployment to? · ap-southeast-1
TypeError: workspace_2.toFileName is not a function
at normalizeOptions (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:168:26)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:181:25
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
at new Promise ()
at Object.__awaiter (/mnt/c/work/nxpoc/node_modules/tslib/tslib.js:113:16)
at apiGenerator (/mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/src/schematics/api/api.js:180:20)
at /mnt/c/work/nxpoc/node_modules/@flowaccount/nx-serverless/node_modules/@nrwl/devkit/src/utils/invoke-nx-generator.js:53:30
at Generator.next ()
at /mnt/c/work/nxpoc/node_modules/tslib/tslib.js:117:75
workspace_2.toFileName is not a function
The text was updated successfully, but these errors were encountered: