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

Warning when registering plugin using baseDir if broccoli-rollup is installed #121

Open
jrjohnson opened this issue Apr 8, 2018 · 0 comments

Comments

@jrjohnson
Copy link

When attempting to add a plugin

setupPreprocessorRegistry(type, registry) {
    registry.add('htmlbars-ast-plugin', {
      baseDir() {
        return __dirname;
      },
    });
  },

if broccoli-rollup is installed then when running ember serve I get the message:
Warning: failed to stat /preprocess-rollup/node_modules/broccoli-rollup/tmp/rollup-input_base_path-6obEeBLr.tmp/0

If I remove broccoli-rollup or remove the baseDir

setupPreprocessorRegistry(type, registry) {
    registry.add('htmlbars-ast-plugin', {});
},

Then no warning is printed.

This is reproducible in a brand new addon like https://github.com/jrjohnson/preprocess-rollup (addon doesn't do anything and the plugin itself won't work since it doesn't exist, bu the message is obvious.

I'm running into this while working on FortAwesome/ember-fontawesome#21

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