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

Lexical error on line... #1

Closed
Martii opened this issue Nov 4, 2017 · 2 comments
Closed

Lexical error on line... #1

Martii opened this issue Nov 4, 2017 · 2 comments

Comments

@Martii
Copy link

Martii commented Nov 4, 2017

Hello,

Trying out this package and I'm getting a rather unusual error message for myself in node@8.x.

"spdx-is-osi": "0.1.2"
var isOSIApproved = require('spdx-is-osi');

...

try {
  isOSIApproved('GPL-3.0');
} catch (err) {
  console.error(err);
}

Error thrown of:

Function {
  message: 'Lexical error on line 1. Unrecognized text.\n...ause OR BSD-2-Clause-Patent OR BSD-3-Cla\n-----------------------^',
  hash: { text: '', token: null, line: 0 } }

Any suggestions please?

@Martii
Copy link
Author

Martii commented Jul 10, 2018

This error disappears with #2

@Martii
Copy link
Author

Martii commented Jul 11, 2018

Closed by your uncredited cherry picking of #2 in 2cdd00a...abd50af

@Martii Martii closed this as completed Jul 11, 2018
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