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.

prop-types source is included in dist builds

See original GitHub issue

It would be nice to have source of prop-types removed from dist. Especially minified version

This helps: https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types

In non-minified build node_modules/react-redux/dist/react-redux.js

image

In minified build node_modules/react-redux/dist/react-redux.min.js

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timdorrcommented, May 3, 2018

I’m cool with that. I’ll check into it for the next release.

0reactions
nkbtcommented, Nov 17, 2019

@artem-malko I know, right! After all that was me who opened the issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is the system looking for 'react-is` inside `prop-types`?
It is a package, but it's looking for it inside prop-types for some reason. This error started when I imported a React Bootstrap...
Read more >
Typechecking With PropTypes - React
PropTypes exports a range of validators that can be used to make sure the data you receive is valid. In this example, we're...
Read more >
Shipping PropTypes from Flow definitions in NPM Packages
The precursor to flow is PropTypes, which is built directly into react . ... --out-dir dist", "build:flow": "flow-copy-source src dist" } }.
Read more >
Cookbook - React Styleguidist
As React removes all PropTypes in its production build, your code will fail. By default, Styleguidist uses the development build for the dev...
Read more >
Sign in - YouTube
Module build failed (from ./node_modules/ source -map-loader/ dist /cjs.js): Error: ENOENT: no such file or directory, ...
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