LoginSignup
1

More than 5 years have passed since last update.

react 問題が解決した参考資料

Last updated at Posted at 2018-06-20

npmコマンドがSyntaxError…{

http://shuzo-kino.hateblo.jp/entry/2015/06/13/233720

Module not found: Error: Can't resolve …パス通ってるのに!

https://qiita.com/toris-birds/items/c0874a66865f7e3a09ee

expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Import Export 関係

https://teratail.com/questions/100553
型がreact.elementでないとはかれるエラー

react.development.jsの以下の行でブレークポイントはるとタイプおかしいやつ捕まえられる。

react.development.js
function createElementWithValidation(type, props, children) {
  var validType = isValidElementType(type);//*************ここで型のチェックしてる

  // We warn in this case but don't throw. We expect the element creation to
  // succeed and there will likely be errors in render.
  if (!validType) {     //*************ここが捕まえやすい
    var info = '';
    if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
      info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
    }

reduserの分割問題について

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1