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

Mastra CLI: Expected a semicolon in workflows/index.ts #2849

Open
zRelux opened this issue Mar 8, 2025 · 1 comment · May be fixed by #2854
Open

Mastra CLI: Expected a semicolon in workflows/index.ts #2849

zRelux opened this issue Mar 8, 2025 · 1 comment · May be fixed by #2854
Assignees
Labels
bug Something isn't working devex

Comments

@zRelux
Copy link

zRelux commented Mar 8, 2025

I was trying to run the dev server, but with this tsconfig.json it wasn't working

tsconfig

{
  "compilerOptions": {
    "lib": ["ESNext", "DOM"],
    "target": "ESNext",
    "module": "ESNext",
    "moduleDetection": "force",
    "jsx": "react-jsx",
    "allowJs": true,
    "moduleResolution": "bundler",
    "allowImportingTsExtensions": true,
    "verbatimModuleSyntax": true,
    "noEmit": true,
    "strict": true,
    "skipLibCheck": true,
    "noFallthroughCasesInSwitch": true,
    "noUnusedLocals": false,
    "noUnusedParameters": false,
    "noPropertyAccessFromIndexSignature": false,
    "strictNullChecks": true,
    "esModuleInterop": true,
    "outDir": "dist",
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": ["src/**/*"],
  "exclude": ["node_modules", "dist", ".mastra"]
}

Issues related to rollup not working with ESNext, once I changed it to the default tsconfig give by mastra everything started working fine

This specifically causes it to fail
"verbatimModuleSyntax": true,

@github-actions github-actions bot added bug Something isn't working devex labels Mar 8, 2025
@OmkarBansod02
Copy link
Contributor

I opened a PR. I’ve added a dedicated writeWorkflowIndexSample function that formats export statements with semicolons using Prettier. The CLI now uses this function when generating the workflows/index.ts file.

@linear linear bot assigned wardpeet and TheIsrael1 and unassigned wardpeet Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working devex
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants