repo-utils/gitlab

import not work on Meteor JS?

thearabbit opened this issue · 1 comments

I base on Meteor JS.

// server method
var gitlab = require('node-gitlab') // don't work
import gitlab from 'node-gitlab' // don't work
..........

Got error

TypeError: fs.readFileSync is not a function
    at eval (/node_modules/urllib/lib/urllib.js:37)
    at dynamic-import.js?hash=6e5870d62f7cbec7d534040d41bfc3a553f07bbd:138
    at fileEvaluate (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:346)
    at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:248)
    at require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:268)
    at eval (/node_modules/urllib/index.js:9)
    at dynamic-import.js?hash=6e5870d62f7cbec7d534040d41bfc3a553f07bbd:138
    at fileEvaluate (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:346)
    at Module.require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:248)
    at require (modules-runtime.js?hash=d3c3e5d67c95f97a60888bda7373292efad3be5e:268)

OK now work fine.
I use Meteor.call on client (don't use import ........)