Skip to content

Error: Cannot find module 'semiring/abstract-expression/atom' #6

@gimite

Description

@gimite

I'm interesting in using this package, but I found that it doesn't work with the latest version (1.2.7) of semiring package, at least when I use it from normal JavaScript.

This is because abstract-expression/atom.js is no longer included in semiring package. I was able to make it work by downgrading semiring to 1.2.3.

$ node --version
v9.10.1
$ npm init -y   
$ npm install probabilistic-earley-parser
+ probabilistic-earley-parser@0.9.6
$ npm list
...
  └── semiring@1.2.7
$ node
> require('probabilistic-earley-parser')
Error: Cannot find module 'semiring/abstract-expression/atom'
    at Function.Module._resolveFilename (module.js:543:15)
    at Function.Module._load (module.js:470:25)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
$ npm install semiring@1.2.3     
$ node
> require('probabilistic-earley-parser')
{ addState: [Function: addState],
...

Thanks for the package anyway!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions