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

build_runner serve failing with "FileSystemException: Directory listing failed" #1963

Closed
jumperchen opened this issue Jan 10, 2019 · 1 comment

Comments

@jumperchen
Copy link

Dart version: 2.1.0
We run with this command pub run build_runner serve web:5678 --output=web:build/web --no-release --define 'build_web_compilers|entrypoint=compiler=dart2js'

And the error displays as below:

FileSystemException: Directory listing failed, path = '/dart_project/node_modules/testcafe-hammerhead.MODULES/...' (OS Error: No such file or directory, errno = 2)
dart:isolate  _RawReceivePortImpl._handleMessage

Why does the build_runner watch the node_modules folder?
How to ignore that folder for watch?

@jakemac53
Copy link
Contributor

The build_runner package watches the root directory of the package - which unfortunately includes the node_modules directory if you have one.

Closing as a duplicate of #1579

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