Skip to content

No go. Failed to Compile..  #9

Description

@zipzit

git clone ...,, npm install, then npm start -->

$ npm start

> books-search-react-hooks@0.1.0 start C:\temp\books
> react-scripts start

i 「wds」: Project is running at http://192.168.56.1/
i 「wds」: webpack output is served from
i 「wds」: Content not from webpack is served from C:\temp\books\public
i 「wds」: 404s will fallback to /
Starting the development server...

Failed to compile.

./src/components/loader.js
Error: C:\temp\books\src\components\loader.js: transform-react-jsx: pragma has been set but pragmaFrag has not been set

Branch = master. Not sure what that error message is all about.

When I load the project up in VSCode, I see an error in loader.js The error message: Type annotations can only be used in TypeScript files. And the error is pointing at the line:
const Loader: React.FunctionComponent<{}> = ({ loading, children }) => {

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