M
M
Michael La2021-06-10 20:00:18
React
Michael La, 2021-06-10 20:00:18

Error with 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)

Ran @loadable/components examples.
Doesn't work on win and linux(ubuntu)
I'm using nodejs v10.0.0

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question