Skip to content

Incompatibility withContentLayer #20

@jeremt

Description

@jeremt

Hello!

I tried to setup contentLayer and linaria together for a project, but I can't use the plugin with contentLayer without getting this error:

image

I simply used the default contentLayer project : https://github.com/contentlayerdev/next-contentlayer-example, and added linaria to the config:

const {withContentlayer} = require('next-contentlayer');
const withLinaria = require('next-with-linaria');
const withPlugins = require('next-compose-plugins');

/** @type {import('next').NextConfig} */
const nextConfig = {
    experimental: {
        appDir: true,
    },
};

module.exports = withPlugins([withContentlayer, withLinaria], nextConfig);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions