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

Confused about bundle eslint-plugin #9

Open
cztflove opened this issue Apr 26, 2021 · 1 comment
Open

Confused about bundle eslint-plugin #9

cztflove opened this issue Apr 26, 2021 · 1 comment

Comments

@cztflove
Copy link

cztflove commented Apr 26, 2021

I forked the repo attempting to extend typescript-eslint
When I run yarn build, rollup occurs error

'@typescript-eslint/eslint-plugin' is imported by scripts/shim/test2.js, but could not be resolved – treating it as an external dependency

the path is valid but why rollup could not resolve it

import {rules} from "@typescript-eslint/eslint-plugin"
function testMethod (){
    console.log("test",rules);
}
export default testMethod;

@yfwz100
Copy link

yfwz100 commented Jul 28, 2021

What's your configuration of rollup? It seems that you haven't configured the node-resolve plugin.

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

2 participants