Skip to content

MainContainer module parse failed - currently no loaders are configured #111

Description

@j-lea

Hi folks,

We are looking to use clarity-react in a simple typescript create-react-app project.
We have followed the instructions in the README (including getting the clarity-react node module from Github instead of npm - issue #72 ), however are getting the following error:

./node_modules/@dell/clarity-react/src/layout/main-container/MainContainer.tsx 24:7

Module parse failed: Unexpected token (24:7)


You may need an appropriate loader to handle this file type, currently no loaders 
are configured to process this file. 

See https://webpack.js.org/concepts#loaders

|  * @param {dataqa} for Quality Engineering

|  */

> export type MainContainerProps = {

|     actions?: React.ReactNode;

|     title: string;

We weren't expecting to configure a loader for something in our node modules, is there something we are missing?

Note: Our App.tsx and index.tsx are copied from the README.md example and the rest is a vanilla create-react-app project to test this out

Thanks in advance!

cc @gmrodgers

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