{"action":"created","issue":{"url":"https://api.github.com/repos/nimiq-network/core/issues/443","repository_url":"https://api.github.com/repos/nimiq-network/core","labels_url":"https://api.github.com/repos/nimiq-network/core/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/nimiq-network/core/issues/443/comments","events_url":"https://api.github.com/repos/nimiq-network/core/issues/443/events","html_url":"https://github.com/nimiq-network/core/issues/443","id":371976567,"node_id":"MDU6SXNzdWUzNzE5NzY1Njc=","number":443,"title":"errors related to the dns npm package when using TypeScript","user":{"login":"takahser","id":5393704,"node_id":"MDQ6VXNlcjUzOTM3MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/5393704?v=4","gravatar_id":"","url":"https://api.github.com/users/takahser","html_url":"https://github.com/takahser","followers_url":"https://api.github.com/users/takahser/followers","following_url":"https://api.github.com/users/takahser/following{/other_user}","gists_url":"https://api.github.com/users/takahser/gists{/gist_id}","starred_url":"https://api.github.com/users/takahser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahser/subscriptions","organizations_url":"https://api.github.com/users/takahser/orgs","repos_url":"https://api.github.com/users/takahser/repos","events_url":"https://api.github.com/users/takahser/events{/privacy}","received_events_url":"https://api.github.com/users/takahser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-19T14:15:39Z","updated_at":"2018-10-19T18:45:04Z","closed_at":"2018-10-19T14:18:43Z","author_association":"NONE","body":"## New issue checklist\r\n<!-- Before submitting this issue, make sure you have done the following -->\r\n\r\n- [ x ] I have read all of the [`README`](https://github.com/nimiq-network/core/blob/master/README.md) \r\n- [ x ] I have searched [existing issues](https://github.com/nimiq-network/core/issues?q=is%3Aissue+sort%3Acreated-desc) and **this is not a duplicate**.\r\n\r\n### General information\r\n\r\n- Library version(s): 1.3.1\r\n- Browser version(s): Chrome 69.0.3497.100 (Official Build) (64-bit)\r\n- Devices/Simulators/Machine affected: -\r\n- Reproducible in the testnet? (Yes/No): not related to any net\r\n- Related issues: -\r\n\r\n## Bug report\r\n\r\n#### Expected behavior\r\n\r\nThe NIMIQ core lib can be used in TypeScript & VUE.\r\n\r\n#### Actual behavior\r\n\r\nI added the nimiq core lib `yarn add @nimiq/core` and started the VUE CLI 3 app `yarn serve`.\r\nIn the console, I get a warning:\r\n\r\n```\r\n ERROR  Failed to compile with 1 errors                                                                                                                                                                              15:37:02\r\n\r\nThis dependency was not found:\r\n\r\n* dns in ./node_modules/@nimiq/core/dist/node.js\r\n\r\nTo install it, you can run: npm install --save dns\r\n```\r\n\r\nWith NPM, I get a different error:\r\n\r\n```\r\nModule not found: Error: Can't resolve 'dns' in\r\n        '/Users/sta/repo/imagewallet-frontend/node_modules/@nimiq/core/dist'\r\n```\r\n\r\nI tried installing the `dns` package with both NPM and YARN, which resulted in new errors.\r\n\r\n- NPM: When starting the app, I'd get an `Uncaught TypeError: Cannot read property 'node' of undefined`\r\n- YARN: error hawk@0.10.2: The engine \"node\" is incompatible with this module. Expected version \"0.8.x\"\r\n\r\n#### Steps to reproduce\r\n\r\n- install vue\r\n- add the nimiq core package\r\n- for more details, see above (Actual behavior)\r\n\r\n#### Crash log? Screenshots? Videos? Sample project?\r\n\r\nsee above (Actual behavior)\r\n\r\n## Question or Feature Request\r\n\r\nAn npm library that is compatible for the frontend."},"comment":{"url":"https://api.github.com/repos/nimiq-network/core/issues/comments/431460500","html_url":"https://github.com/nimiq-network/core/issues/443#issuecomment-431460500","issue_url":"https://api.github.com/repos/nimiq-network/core/issues/443","id":431460500,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTQ2MDUwMA==","user":{"login":"sisou","id":1828163,"node_id":"MDQ6VXNlcjE4MjgxNjM=","avatar_url":"https://avatars1.githubusercontent.com/u/1828163?v=4","gravatar_id":"","url":"https://api.github.com/users/sisou","html_url":"https://github.com/sisou","followers_url":"https://api.github.com/users/sisou/followers","following_url":"https://api.github.com/users/sisou/following{/other_user}","gists_url":"https://api.github.com/users/sisou/gists{/gist_id}","starred_url":"https://api.github.com/users/sisou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisou/subscriptions","organizations_url":"https://api.github.com/users/sisou/orgs","repos_url":"https://api.github.com/users/sisou/repos","events_url":"https://api.github.com/users/sisou/events{/privacy}","received_events_url":"https://api.github.com/users/sisou/received_events","type":"User","site_admin":false},"created_at":"2018-10-19T18:45:04Z","updated_at":"2018-10-19T18:45:04Z","author_association":"COLLABORATOR","body":"For the correct types, you can use https://www.npmjs.com/package/@nimiq/core-types. "}}
{"actor":{"display_login":"sisou"}}