Open falk-miracode opened 2 years ago
Did you get a resolution to this? I'd like to use typescript and jsx if possible with the template
Looking for a solution / workaround as well.
Should the next-corporate template perhaps be removed? It's been non-functional for over a year now...
Description
Running the starter command
yarn create strapi-starter my-site next-corporate
and picking the options "Custom" and "TypeScript", leads toerror: Cannot read properties of undefined (reading 'routes')
, so the backend server isn't able to start.Option "Quickstart" (JavaScript) does work.
Steps to reproduce + outputs
Run Starter command
> Custom (manual settings)
> TypeScript
> sqlite
Creating a project with custom database options. Creating a new Strapi application at /home/falk/strapi-next-corporate-starter-test/my-site/backend. Creating files. Installing @strapi/template-corporate template. Dependencies installed successfully.
Your application was created at /home/falk/strapi-next-corporate-starter-test/my-site/backend.
Available commands in your project:
yarn develop Start Strapi in watch mode. (Changes in Strapi project files will trigger a server restart)
yarn start Start Strapi without watch mode.
yarn build Build Strapi admin panel.
yarn strapi Display all available commands.
You can start by doing:
cd /home/falk/strapi-next-corporate-starter-test/my-site/backend yarn develop
Creating Strapi starter frontend at /home/falk/strapi-next-corporate-starter-test/my-site/frontend. Installing frontend dependencies Dependencies installed successfully. Dependencies installed successfully. Starting the app yarn run v1.22.15 $ cross-env FORCE_COLOR=1 npm-run-all -l -p develop:* $ wait-on http://localhost:1337/admin && yarn --cwd frontend develop $ yarn --cwd backend develop $ strapi develop [develop:backend ] Starting the compilation for TypeScript files in /home/falk/strapi-next-corporate-starter-test/my-site/backend [develop:backend ] Building your admin UI with development configuration... [develop:backend ] ℹ Compiling Webpack [develop:backend ] ✔ Webpack: Compiled successfully in 11.23s [develop:backend ] Admin UI built successfully [develop:backend ] [2022-08-31 11:27:38.773] debug: ⛔️ Server wasn't able to start properly. [develop:backend ] [2022-08-31 11:27:38.774] error: Cannot read properties of undefined (reading 'routes') [develop:backend ] TypeError: Cannot read properties of undefined (reading 'routes') [develop:backend ] at Object.addCreateLocalizationAction (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/plugin-i18n/server/services/core-api.js:184:41) [develop:backend ] at /home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/plugin-i18n/server/register.js:78:22 [develop:backend ] at Array.forEach ()
[develop:backend ] at extendLocalizedContentTypes (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/plugin-i18n/server/register.js:56:38)
[develop:backend ] at Object.module.exports [as register] (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/plugin-i18n/server/register.js:12:3)
[develop:backend ] at Object.register (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/strapi/lib/core/domain/module/index.js:47:46)
[develop:backend ] at Object.register (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/strapi/lib/core/registries/modules.js:33:19)
[develop:backend ] at async Strapi.runLifecyclesFunctions (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/strapi/lib/Strapi.js:510:5)
[develop:backend ] at async Strapi.register (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/strapi/lib/Strapi.js:379:5)
[develop:backend ] at async Strapi.load (/home/falk/strapi-next-corporate-starter-test/my-site/backend/node_modules/@strapi/strapi/lib/Strapi.js:456:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "develop:backend" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Command failed with exit code 1: yarn develop
at makeError (/home/falk/.config/yarn/global/node_modules/execa/lib/error.js:60:11)
at handlePromise (/home/falk/.config/yarn/global/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async buildStarter (/home/falk/.config/yarn/global/node_modules/create-strapi-starter/utils/build-starter.js:194:3)
Done in 200.17s.