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

JSX/TSX issues during compilation #1227

Open
sidverma32 opened this issue Nov 5, 2024 · 1 comment
Open

JSX/TSX issues during compilation #1227

sidverma32 opened this issue Nov 5, 2024 · 1 comment

Comments

@sidverma32
Copy link

Hi,

I have recently used this library in our project for compiling packages into single compiled file but getting various issues and compilation errors like:

Typescript related error: "files" list in config file tsconfig.json is empty
JSX compilation error : you may need an additional loaders to handle the result of these loaders

project structure:

packages/
   packageA/
      node_modules/
      package.json
      tsconfig.json
      src/
         index.ts
         client/
           testComponent.tsx
         server/
           index.js
      dist/
      
     ... similar structure for packageB/ also

how to resolve such compilation errors or anyone has tried any workaround this in your project, please share some insights.

Note: Yeah i know @vercel/ncc doesn't support JSX syntax

@styfle
Copy link
Member

styfle commented Nov 5, 2024

Its probably not finding the tsconfig.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants