Typescript + Rollup thows error “ Missing exports ” while using “request” as dependency
up vote
0
down vote
favorite
I am using request node module for communicating with server over ajax.
When I tried to use it with TypeScript and uses rollup to generate "iife"
it throws the below error and library is not working.
get is not exported by node_modulesrequestindex.js
14: uri: API_HOST + url,
15: };
16: return [4 /*yield*/, request.get(options)];
^
17: case 1:
18: result = _a.sent();
typescript request rollupjs
add a comment |
up vote
0
down vote
favorite
I am using request node module for communicating with server over ajax.
When I tried to use it with TypeScript and uses rollup to generate "iife"
it throws the below error and library is not working.
get is not exported by node_modulesrequestindex.js
14: uri: API_HOST + url,
15: };
16: return [4 /*yield*/, request.get(options)];
^
17: case 1:
18: result = _a.sent();
typescript request rollupjs
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using request node module for communicating with server over ajax.
When I tried to use it with TypeScript and uses rollup to generate "iife"
it throws the below error and library is not working.
get is not exported by node_modulesrequestindex.js
14: uri: API_HOST + url,
15: };
16: return [4 /*yield*/, request.get(options)];
^
17: case 1:
18: result = _a.sent();
typescript request rollupjs
I am using request node module for communicating with server over ajax.
When I tried to use it with TypeScript and uses rollup to generate "iife"
it throws the below error and library is not working.
get is not exported by node_modulesrequestindex.js
14: uri: API_HOST + url,
15: };
16: return [4 /*yield*/, request.get(options)];
^
17: case 1:
18: result = _a.sent();
typescript request rollupjs
typescript request rollupjs
asked Nov 9 at 14:00
Ishaan Puniani
1992419
1992419
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53227141%2ftypescript-rollup-thows-error-missing-exports-while-using-request-as-dep%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password