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

[BUG] TypeError: Cannot read property '1' of null #23

Open
jaygel179 opened this issue Mar 9, 2016 · 0 comments
Open

[BUG] TypeError: Cannot read property '1' of null #23

jaygel179 opened this issue Mar 9, 2016 · 0 comments

Comments

@jaygel179
Copy link

I have this component

<p></p>

<style>
</style>

<script>
  // Ractive.load()
  // any comment
</script>

and parse the source file using rcu.parse() but got this error..

TypeError: Cannot read property '1' of null
      at tokenClosesExpression (node_modules/rcu/dist/rcu.umd.js:491:38)
      at base (node_modules/rcu/dist/rcu.umd.js:350:117)
      at find (node_modules/rcu/dist/rcu.umd.js:482:13)
      at match (node_modules/rcu/dist/rcu.umd.js:581:16)
      at Object.parse (node_modules/rcu/dist/rcu.umd.js:732:5)
      at test/sample.js:16:30
      at lib$es6$promise$$internal$$tryCatch (node_modules/es6-promise/dist/es6-promise.js:331:16)
      at lib$es6$promise$$internal$$invokeCallback (node_modules/es6-promise/dist/es6-promise.js:343:17)
      at lib$es6$promise$$internal$$publish (node_modules/es6-promise/dist/es6-promise.js:314:11)
      at Object.lib$es6$promise$asap$$flush [as _onImmediate] (node_modules/es6-promise/dist/es6-promise.js:125:9)

If i will remove the comment (// any comment) below // Ractive.load() comment, i wont get the error.

<p></p>

<style>
</style>

<script>
  // Ractive.load()
</script>

I tried different comments.. a full component with CSS JS and HTML and none of that matters as long as there's no comment below // Ractive.load()

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