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

Fix import warning for webpack 5 #5933

Merged
merged 3 commits into from
Nov 20, 2020
Merged

Fix import warning for webpack 5 #5933

merged 3 commits into from
Nov 20, 2020

Conversation

GLStephen
Copy link
Collaborator

@GLStephen GLStephen commented Nov 4, 2020

This PR created on behalf of @gpoitch for #5909

Fixes #5909


Webpack 5 emits a warning when importing named exports from json files:

"WARNING in ../../node_modules/prebid.js/src/secureCreatives.js 15:16-30
Should not import the named export 'EVENTS'.'BID_WON' (imported as 'EVENTS') from default-exporting module (only default export is available soon)"

Webpack 5 emits a warning when importing named exports from json files:

```
"WARNING in ../../node_modules/prebid.js/src/secureCreatives.js 15:16-30
Should not import the named export 'EVENTS'.'BID_WON' (imported as 'EVENTS') from default-exporting module (only default export is available soon)"
```
@GLStephen GLStephen self-assigned this Nov 4, 2020
@GLStephen
Copy link
Collaborator Author

Fixes #5909

@GLStephen
Copy link
Collaborator Author

@gpoitch I can't get this to pass Circle CI, but the failure doesn't look exactly related to this change, can you take a look?

@gpoitch
Copy link
Contributor

gpoitch commented Nov 11, 2020

@GLStephen looks like a timeout. Restart the build/merge master?

@GLStephen
Copy link
Collaborator Author

@gpoitch yes, please do a merge with master and let's try it again

@gpoitch
Copy link
Contributor

gpoitch commented Nov 11, 2020

No dice. Master itself is currently failing but the errors are different. Seems like a testing issue.

Thanks for opening the PR for me. Just realized my ad blocker was preventing me from doing anything in this repo.

@DecayConstant
Copy link

Do we know if the the testing issues have been dealt with? I'd like to see this get approved 👍

@gpoitch
Copy link
Contributor

gpoitch commented Nov 18, 2020

passing now

@GLStephen GLStephen merged commit 578213c into prebid:master Nov 20, 2020
stsepelin pushed a commit to cointraffic/Prebid.js that referenced this pull request May 28, 2021
Webpack 5 emits a warning when importing named exports from json files:

```
"WARNING in ../../node_modules/prebid.js/src/secureCreatives.js 15:16-30
Should not import the named export 'EVENTS'.'BID_WON' (imported as 'EVENTS') from default-exporting module (only default export is available soon)"
```

Co-authored-by: Garth Poitras <411908+gpoitch@users.noreply.github.com>
Co-authored-by: gpoitch <garth22@gmail.com>
@gpoitch gpoitch deleted the gpoitch-patch-1 branch December 3, 2021 20:03
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

Successfully merging this pull request may close these issues.

JSON import warning in webpack 5
3 participants