Skip to content

pub build (transformers) unable to infer dart-sdk location. #18

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

Closed
bgourlie opened this issue Dec 5, 2014 · 6 comments
Closed

pub build (transformers) unable to infer dart-sdk location. #18

bgourlie opened this issue Dec 5, 2014 · 6 comments

Comments

@bgourlie
Copy link

bgourlie commented Dec 5, 2014

I'm attempting to run the angular transformer on a project and I get the following error:
Loading angular transformers...
Error on line 15, column 3 of pubspec.yaml: Error loading transformer: Invalid arguments(s): sdkDirectory must be provided.

After a bit of researching, I believe this is because pub cannot infer the location of the dart-sdk due to where the brew formula is putting files.

@sethladd
Copy link
Contributor

sethladd commented Dec 6, 2014

Yeah, that's a known issue :( Seems to also happen with Debian (.deb) installs.

See also:

https://code.google.com/p/dart/issues/detail?id=21783

and

https://code.google.com/p/dart/issues/detail?id=21225

@sethladd
Copy link
Contributor

@sethladd
Copy link
Contributor

Going to close this as a dupe of https://code.google.com/p/dart/issues/detail?id=21225

Thanks again for the report!

@bgourlie
Copy link
Author

@sethladd Just noticed this: https://code.google.com/p/dart/source/detail?r=42275

Not sure if it addresses this particular issue, but looks promising (not home so I can't test myself).

@sethladd
Copy link
Contributor

Yup! Hopefully it works :)

@andrew-luhring
Copy link

What's the solution to this?
What do I do?
"pubspec.yaml:Error loading transformer: Invalid arguments(s): sdkDirectory must be provided."
in pubspec.yaml should I do something like add:

sdkDirectory: /Applications/dart/dart-sdk/

?

(I tried that and it doesn't work... I don't know the syntax of whatever it would be)

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

3 participants