@Mihail_Tropin
C++ и Python = my love

Ошибка с path — react+loadable-components?

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.extname (path.js:1365:5)
at getFileScriptType (/home/lemit/loadable-components/examples/server-side-rendering-async-node/node_modules/@loadable/server/lib/ChunkExtractor.js:49:60)
at isScriptFile (/home/lemit/loadable-components/examples/server-side-rendering-async-node/node_modules/@loadable/server/lib/ChunkExtractor.js:53:10)
at stats.assets.filter (/home/lemit/loadable-components/examples/server-side-rendering-async-node/node_modules/@loadable/server/lib/ChunkExtractor.js:366:11)
at Array.filter ()
at ChunkExtractor.requireEntrypoint (/home/lemit/loadable-components/examples/server-side-rendering-async-node/node_modules/@loadable/server/lib/ChunkExtractor.js:364:23)
at app.get (/home/lemit/loadable-components/examples/server-side-rendering-async-node/src/server/main.js:43:42)
at Layer.handle [as handle_request] (/home/lemit/loadable-components/examples/server-side-rendering-async-node/node_modules/express/lib/router/layer.js:95:5)
at next (/home/lemit/loadable-components/examples/server-side-rendering-async-node/node_modules/express/lib/router/route.js:137:13)

Запускал примеры @loadable/components.
Не работает на win и linux(ubuntu)
Использую nodejs v10.0.0
  • Вопрос задан
  • 23 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы