Ryan Gonzalez
2018-06-29 15:10:36 UTC
I've been getting VueDart up-to-date with Dart 2.0 and the build package,
and so far it's been working well. However, there's one odd problem I've
encountered.
Right now, when a file contains a component definition, the builder creates
a .vue.dart file (since, of course, package:build doesn't allow overwriting
the original file). Now, I've observed some rather odd behavior related to
this:
1. Other files in the same package need to explicitly import the .vue.dart
file. For instance, instead of importing 'my_file.dart', it'll import
'my_file.vue.dart'. The problem, of course, is that the analyzer doesn't
know this file exists, so it causes analysis errors.
2. Files *outside* the package seem to be able to get away with just
importing 'my_file.dart'.
I have two questions from this:
1. For the first point, how should I work around this? I noticed that
AngularDart has its own analysis plugin; does it just change the imports
before the analyzer runs on them?
2. For the second point, why on earth does this happen?
--
Ryan (ã©ã€ã¢ã³)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
and so far it's been working well. However, there's one odd problem I've
encountered.
Right now, when a file contains a component definition, the builder creates
a .vue.dart file (since, of course, package:build doesn't allow overwriting
the original file). Now, I've observed some rather odd behavior related to
this:
1. Other files in the same package need to explicitly import the .vue.dart
file. For instance, instead of importing 'my_file.dart', it'll import
'my_file.vue.dart'. The problem, of course, is that the analyzer doesn't
know this file exists, so it causes analysis errors.
2. Files *outside* the package seem to be able to get away with just
importing 'my_file.dart'.
I have two questions from this:
1. For the first point, how should I work around this? I noticed that
AngularDart has its own analysis plugin; does it just change the imports
before the analyzer runs on them?
2. For the second point, why on earth does this happen?
--
Ryan (ã©ã€ã¢ã³)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/
--
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/CAO41-mMd7aQnwdibDvkDk4u%3Dbz4Mp_t1xhtUuNgLT95O1ZkBZw%40mail.gmail.com.
For more ways to connect visit https://www.dartlang.org/community
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/misc/CAO41-mMd7aQnwdibDvkDk4u%3Dbz4Mp_t1xhtUuNgLT95O1ZkBZw%40mail.gmail.com.