- {pageData.childrens.map((c: any) => (
+ {pageData.formKeys.map((formKey: any) => (
))}
diff --git a/src/@episerver/forms-sdk/src/form-loader/apiConstant.ts b/src/@episerver/forms-sdk/src/form-loader/apiConstant.ts
index a3a72ce..e4ef6cf 100644
--- a/src/@episerver/forms-sdk/src/form-loader/apiConstant.ts
+++ b/src/@episerver/forms-sdk/src/form-loader/apiConstant.ts
@@ -1,4 +1,4 @@
export enum ApiConstant {
apiVersion = "v1",
- apiEndpoint = `_form/${ApiConstant.apiVersion}/form`
+ apiEndpoint = `_forms/${ApiConstant.apiVersion}/forms`
}
\ No newline at end of file
diff --git a/yarn-error.log b/yarn-error.log
new file mode 100644
index 0000000..0b9feb2
--- /dev/null
+++ b/yarn-error.log
@@ -0,0 +1,81 @@
+Arguments:
+ C:\Program Files\nodejs\node.exe C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js run build
+
+PATH:
+ C:\Program Files\PowerShell\7;C:\Program Files\Microsoft MPI\Bin\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\WindowsPowerShell\Scripts;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\GitExtensions\;C:\Program Files\Java\jdk-10.0.2\bin;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Users\liho\AppData\Local\SourceTree\app-3.4.9\tools\putty;C:\Users\liho\AppData\Local\SourceTree\app-3.4.9\tools\;C:\Program Files (x86)\Microsoft SQL Server\160\Tools\Binn\;C:\Program Files\Microsoft SQL Server\160\Tools\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Users\liho\appdata\local\programs\python\python312\Scripts;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft MPI\Bin\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\WindowsPowerShell\Scripts;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\GitExtensions\;C:\Program Files\Java\jdk-10.0.2\bin;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Users\liho\AppData\Local\SourceTree\app-3.4.9\tools\putty;C:\Users\liho\AppData\Local\SourceTree\app-3.4.9\tools\;C:\Program Files (x86)\Microsoft SQL Server\160\Tools\Binn\;C:\Program Files\Microsoft SQL Server\160\Tools\Binn\;C:\Program Files\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Users\liho\appdata\local\programs\python\python312\Scripts;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\liho\appdata\local\programs\python\python312\Scripts;C:\Users\liho\AppData\Local\Programs\Python\Python312\;C:\Users\liho\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\liho\AppData\Local\Yarn\bin\;C:\Users\liho\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\liho\.dotnet\tools;C:\Users\liho\AppData\Roaming\npm;C:\Users\liho\.dotnet\tools
+
+Yarn version:
+ 1.22.19
+
+Node version:
+ 16.20.2
+
+Platform:
+ win32 x64
+
+Trace:
+ Error: Failed to replace env in config: ${AZURE_TOKEN}
+ at C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:94933:13
+ at String.replace (
)
+ at envReplace (C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:94928:16)
+ at Function.normalizeConfig (C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:31938:69)
+ at NpmRegistry. (C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:31968:34)
+ at Generator.next ()
+ at step (C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30)
+ at C:\Users\liho\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
+
+npm manifest:
+ {
+ "name": "content-headless-form-js-sdk",
+ "version": "1.0.0",
+ "description": "Workspace root",
+ "workspaces": [
+ "src/@episerver/forms-react",
+ "src/@episerver/forms-sdk",
+ "samples/sample-react-app",
+ "samples/managementsite",
+ "samples/musicfestival-frontend-react",
+ "samples/musicfestival-backend-dotnet"
+ ],
+ "author": "Optimizely",
+ "license": "ISC",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/episerver/content-headless-form-js-sdk.git"
+ },
+ "scripts": {
+ "setup-database": "setup.cmd",
+ "setup-backend": "npm run setup -w managementsite",
+ "setup-react-app": "npm install -w sample-react-app",
+ "setup-forms-sdk": "npm install -w @episerver/forms-sdk",
+ "setup-forms-react": "npm install -w @episerver/forms-react",
+ "setup": "npm run setup-forms-sdk && npm run setup-forms-react && npm run setup-react-app && npm run setup-backend && npm run setup-database",
+ "build-backend": "npm run build -w managementsite",
+ "build-forms-sdk": "npm run build -w @episerver/forms-sdk",
+ "build-forms-react": "npm run build -w @episerver/forms-react",
+ "build": "npm run build-forms-sdk && npm run build-forms-react",
+ "test-forms-sdk": "npm run test -w @episerver/forms-sdk",
+ "test": "npm run test-forms-sdk",
+ "start-backend": "npm start -w managementsite",
+ "start-frontend": "npm start -w sample-react-app",
+ "publish-forms-sdk": "npm publish -w @episerver/forms-sdk",
+ "publish-forms-react": "npm publish -w @episerver/forms-react",
+ "publish": "npm run publish-forms-sdk && npm run publish-forms-react",
+ "build-musicfestival": "npm run build -w music-festival",
+ "start-musicfestival": "npm start -w music-festival",
+ "build-musicfestival-backend": "npm run build -w musicfestival-backend",
+ "start-musicfestival-backend": "npm start -w musicfestival-backend"
+
+ },
+ "dependencies": {
+ "@emotion/react": "^11.11.4",
+ "@emotion/styled": "^11.11.5",
+ "@mui/material": "^5.15.15"
+ }
+ }
+
+yarn manifest:
+ No manifest
+
+Lockfile:
+ No lockfile