`./es6-promise.map` polyfill warning with Webpack / TypeScript
See original GitHub issueThe 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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Hi @Nevraeka, Looks like you are using typescript. can you share your
webpack.config
andtsconfig
Best, Khaled