rubber-blueR
Refine2y ago
4 replies
rubber-blue

Error Creating New Refine App

Hello all,

I am running into errors trying to start a new refine app.

Here is what I did:
npm create refine-app@latest

✔ Downloaded remote source successfully.
✔ Choose a project template · refine-vite
✔ What would you like to name your project?: · frontend
✔ Choose your backend service to connect: · data-provider-custom-json-rest
✔ Do you want to use a UI Framework?: · chakra
✔ Do you want to add example pages?: · inferencer
✔ Do you need any Authentication logic?: · auth-provider-google
✔ Do you need i18n (Internationalization) support?: · no
✔ Choose a package manager: · npm


When running npm run dev I get this error:
✘ [ERROR] Could not resolve "graphql"

    node_modules/graphql-tag/lib/index.js:2:22:
      2 │ import { parse } from 'graphql';
        ╵                       ~~~~~~~~~

  You can mark the path "graphql" as external to exclude it from the bundle, which will remove this error.


I am not sure what depends on graphql, so i don't want to remove it.

Seeing as this is just a simple refine app created from the official CLI, I am assuming this should work out of the box, but I may be wrong based on my configuration.

Thanks!
Was this page helpful?