Can seem to import {DFP} from 'google-ad-manager-api';
Closed this issue · 0 comments
echz commented
Step 1 and authentication happens fine, when I console.log the client variable I can see the correct credentials and an access_token.
When I try import {DFP} from 'google-ad-manager-api
vscode returns:
import {DFP} from 'google-ad-manager-api';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11
When looking in node_modules\google-ad-manager-api\build\src I can see the dfp.js file which exports DFP, so I'm not sure why it's not being found?