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

Unexpected data value while parsing #24

Open
SachaG opened this issue Sep 11, 2016 · 3 comments
Open

Unexpected data value while parsing #24

SachaG opened this issue Sep 11, 2016 · 3 comments

Comments

@SachaG
Copy link

SachaG commented Sep 11, 2016

I'm trying to pass a filter prop set to Interest to a FilterPoint component from inside a markdown file. Here's my code:

..FilterPoint
  ---
  filter: Interest
  ---

And here's my config:

{
  directives: {
    FilterPoint: {
      component: {
        source: './components/stackedbar/FilterPoint.js'
      }
    }
  }
}

This is triggering the following error:

ERROR in ./contents/frontend/results.md
Found an unexpected data value while parsing ..FilterPoint directive at line 6 column 1

Any idea?

@SachaG
Copy link
Author

SachaG commented Sep 11, 2016

Also note that doing

..FilterPoint Interest

doesn't work either.

@andreypopp
Copy link
Owner

You need to define that your directive accepts data and / or line. I need
to update the docs. In the mean time you can look it up in tests.
On Sun, 11 Sep 2016 at 06:10, Sacha Greif notifications@github.com wrote:

Also note that doing

..FilterPoint Interest

doesn't work either.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB3ggA2fBeTYoseBZ1z_DqJBWQwUrDDks5qo3ErgaJpZM4J545x
.

@SachaG
Copy link
Author

SachaG commented Sep 12, 2016

Oh thanks. Would you have a link to the test by any chance?

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