Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Import fails in Remix #71

Closed
valerius21 opened this issue Apr 13, 2022 · 1 comment
Closed

Import fails in Remix #71

valerius21 opened this issue Apr 13, 2022 · 1 comment

Comments

@valerius21
Copy link

Hey there, when using vechaiui with remix.run I am getting the following error:

✘ [ERROR] No matching export in "node_modules/@vechaiui/react/dist/esm/index.js" for import "VenchaiProvider"

    app/components/Providers.tsx:2:9:
      2 │ import { VenchaiProvider } from "@vechaiui/react";
        ╵          ~~~~~~~~~~~~~~~


Build failed with 1 error:
app/components/Providers.tsx:2:9: ERROR: No matching export in "node_modules/@vechaiui/react/dist/esm/index.js" for import "VenchaiProvider"
💿 Rebuilt in 64ms

tailwind.config.js

module.exports = {
  content: ["./app/**/*.{ts,tsx,jsx,js}"],
    mode: "jit",
  purge: [
    // ...
    "./node_modules/@vechaiui/**/*.{js,ts,jsx,tsx}", // path to vechaiui
  ],
  darkMode: "class", // or 'media' or 'class'
  theme: {
    extend: {},
  },
  variants: {
    extend: {},
  },
  plugins: [
    require("@tailwindcss/forms"),
    require("@vechaiui/core"),
  ],
};

I set up a project with the following command

npx create-remix --template remix-run/blues-stack

@pepelele
Copy link
Contributor

pepelele commented Apr 14, 2022

Try changing VechaiProvider to VenchaiProvider 😄

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

No branches or pull requests

2 participants