Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Nesxtjs #22

Open
mohammadshayegh opened this issue Jul 30, 2020 · 3 comments
Open

Error in Nesxtjs #22

mohammadshayegh opened this issue Jul 30, 2020 · 3 comments

Comments

@mohammadshayegh
Copy link

mohammadshayegh commented Jul 30, 2020

I try to use this package in my react/nextjs project but it throws this error: “SyntaxError: Unexpected token < in JSON at position 0”.

import { Index } from "./containers/index";
import styled from "styled-components";
import { useClearCache } from "react-clear-cache";

export const IndexPage= () => {
      const { isLatestVersion, emptyCacheStorage } = useClearCache();
      return isLatestVersion  ? <Index /> : emptyCacheStorage();
}
@emege93
Copy link

emege93 commented Dec 2, 2020

in my project have the same problem. this component have any problem with nextjs? hope they can help with this error

@nucab
Copy link
Owner

nucab commented Dec 15, 2020

Hi, thank you for reporting this one. I haven't tested this out with nextjs. Maybe you guys can help to contribute and it would be greatly appreciated for those who are using nextjs too.

@AlenaProvotorova
Copy link

the same problem. Someone handled it?

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

No branches or pull requests

4 participants