Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can seem to import {DFP} from 'google-ad-manager-api'; #4

Closed
echz opened this issue Nov 13, 2019 · 0 comments
Closed

Can seem to import {DFP} from 'google-ad-manager-api'; #4

echz opened this issue Nov 13, 2019 · 0 comments

Comments

@echz
Copy link

echz commented Nov 13, 2019

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?

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

No branches or pull requests

2 participants