Skip to content

Peer dependencies are being ignored #12

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

Open
jonybekov opened this issue Feb 13, 2024 · 0 comments
Open

Peer dependencies are being ignored #12

jonybekov opened this issue Feb 13, 2024 · 0 comments

Comments

@jonybekov
Copy link

jonybekov commented Feb 13, 2024

Hi, thanks for awesome library.

I am using this plugin to transpile esnext directory of vis-timeline library.
My config is like this:

const path = require("path");
const fs = require("fs");
const cracoBabelLoader = require("craco-babel-loader");

// manage relative paths to packages
const appDirectory = fs.realpathSync(process.cwd());
const resolvePackage = (relativePath) =>
  path.resolve(appDirectory, relativePath);

module.exports = {
  style: {
    postcss: {
      plugins: [require("tailwindcss"), require("autoprefixer")],
    },
  },
  plugins: [
    {
      plugin: cracoBabelLoader,
      options: {
        includes: [resolvePackage("node_modules/vis-timeline/esnext")],
      },
    },
  ],
};

However, when I run this, I get error

image

It looks like all peerDependencies are being ignored when transpiling node_modules?
image

Is there any way to automatically install peer deps?

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

1 participant