Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Less with Link #560

Closed
mohammadou1 opened this issue Nov 4, 2019 · 3 comments
Closed

Less with Link #560

mohammadou1 opened this issue Nov 4, 2019 · 3 comments

Comments

@mohammadou1
Copy link

in my index.js

am importing less file
import 'style.less'

but if am at page B then navigate to index

less file causes an issue :(

@mohammadou1
Copy link
Author

https://nextstore.itmohou.now.sh/brands

an example is here
if you start at index directory everything works fine

but go to any page then go back to index and it gets stuck because of less file

@mohammadou1
Copy link
Author

  return withManifest(
    withOffline(
      withCSS(withLess({
        lessLoaderOptions: {
          javascriptEnabled: true,
          modifyVars: themeVariables
        },
        manifest: {
          ...manifest
        },
        ...nextConfig
      }
      ))
    ));

this is my next.config

@gurmeetsinghmalhotra
Copy link

I think you'll need to include a blank(file with no contents) .less file in other pages as well

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

3 participants