question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`./es6-promise.map` polyfill warning with Webpack / TypeScript

See original GitHub issue

The polyfill for Promise seems unreachable. Please advise on how to fix this warning. Thanks in advance. cc @TheLarkInn

  • Node Version: 6.8
  • Npm Version: 3.10.8
  • Platform: V-061G8WP 16.0.0 Darwin Kernel Version 16.0.0
  • Package Version: contentful@4.3.0

Webpack output (with some altered paths & names)

WARNING in ./~/contentful/dist/contentful.js
(Emitted value instead of an instance of Error) Cannot find SourceMap 'es6-promise.map': Error: Can't resolve './es6-pro
mise.map' in '/node_modules/contentful/dist'
 @ ./app/utils/contentfulConnector.tsx 6:19-40
 @ ./app/containers/FeatureX/index.tsx
 @ ./app/containers/App/index.tsx
 @ ./app/app.tsx
 @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true ./app/app.tsx

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Khaledgarbayacommented, May 10, 2017

Hi @Nevraeka , I made a PR that should fix this issue. It would so kind if you can test it in you setup before we release a new fix here is the link https://github.com/contentful/contentful.js/pull/146.

Best, Khaled

1reaction
Khaledgarbayacommented, May 8, 2017

Hi @Nevraeka, Looks like you are using typescript. can you share your webpack.config and tsconfig

Best, Khaled

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module Methods - webpack
warning. This feature relies on Promise internally. If you use import() with older browsers, remember to shim Promise using a polyfill such as...
Read more >
Module not found: Error: Can't resolve 'core-js/es6'
I added the polyfill.js to my webpack-file entry attribute like this: entry: ['./src/main.scss', './src/polyfill.js', './src/main.jsx'].
Read more >
babel/polyfill
Babel includes a polyfill that includes a custom regenerator runtime and core-js. ... With webpack, there are multiple ways to include the polyfills:....
Read more >
promise-polyfill - npm
promise-polyfill. 8.2.3 • Public • Published 10 months ago. Readme · Code Beta · 0 Dependencies · 974 Dependents · 45 Versions ...
Read more >
Promise.prototype.finally() - JavaScript - MDN Web Docs
Warning : This is only for demonstration purposes and is not a polyfill. promise.then( (value) => Promise.resolve(onFinally()).then(() ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found