Skip to content

JSX/TSX issues during compilation  #1227

Open
@sidverma32

Description

@sidverma32

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions