Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Primary entry point missing in npm package #163

Closed
ThomasLobker opened this issue May 18, 2018 · 1 comment
Closed

Primary entry point missing in npm package #163

ThomasLobker opened this issue May 18, 2018 · 1 comment

Comments

@ThomasLobker
Copy link
Contributor

Primary entry point missing in npm package

  • neo-js Version: 0.8.0
  • node Version: 10
  • Operation System: Ubuntu
  • MongoDB Version (if applicable): any

Expected behavior

Being able to require @cityofzion/neo-js after npm i @cityofzion/neo-js
const Node = require('@cityofzion/neo-js');

Actual behavior

    throw err;
    ^

Error: Cannot find module '@cityofzion/neo-js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
    at Function.Module._load (internal/modules/cjs/loader.js:497:25)
    at Module.require (internal/modules/cjs/loader.js:626:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (index.js:1:76)
    at Module._compile (internal/modules/cjs/loader.js:678:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
    at Module.load (internal/modules/cjs/loader.js:589:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
    at Function.Module._load (internal/modules/cjs/loader.js:520:3)

Steps to reproduce the behavior

  1. npm i @cityofzion/neo-js
  2. echo "const Node = require('@cityofzion/neo-js');" > index.js
  3. nodejs index.js
ThomasLobker added a commit to ThomasLobker/neo-js that referenced this issue May 18, 2018
rockacola added a commit that referenced this issue May 20, 2018
@rockacola
Copy link
Collaborator

rockacola commented May 20, 2018

Thank you for pointing and addressing the bug! A new patch will be published to rectify this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants