chen-rn / CUA

(no longer maintained) create-universal-app(CUA) is an opinionated template for creating fullstack universal apps (Expo, Next, tRPC, Prisma, Clerk, Solito, Tamagui)

Home Page:https://cua-demo.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Cannot access 'setup' before initialization

sregg opened this issue · comments

Describe the bug
Getting this error when creating the project using npx create-t3-universal-app

% npx create-t3-universal-app my-cua 
  _   ____    ___ _   _  _   
 | |_|__ /   / __| | | |/_\ 
 |  _||_ \  | (__| |_| / _ \
  \__|___/   \___|\___/_/ \_\

file:///Users/simonreggiani/.npm/_npx/b8472a8042a9c157/node_modules/create-t3-universal-app/bin/index.js:50
  setup(folderArg);
  ^

ReferenceError: Cannot access 'setup' before initialization
    at file:///Users/simonreggiani/.npm/_npx/b8472a8042a9c157/node_modules/create-t3-universal-app/bin/index.js:50:3
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:526:24)
    at async loadESM (node:internal/process/esm_loader:91:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12)

To Reproduce
Steps to reproduce the behavior:

  1. run npx create-t3-universal-app my-cua

Expected behavior
The project is created

NVM, it works fine when omitting the project name in the command:

npx create-t3-universal-app