I imagine I'm just not setting it up right, but starting simply first, I'm getting some undefined messages when I try to build with any of the standard setups in the readme.
(in plugins)
[!] (plugin modulepreload) ReferenceError: fs is not defined
ReferenceError: fs is not defined
at shouldPreload (.../rollup.config.js:85:12)
(in plugins)
modulepreload({
index: 'index.html',
})
result:
[!] (plugin modulepreload) TypeError: Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at defaultShouldPreload (.../node_modules/rollup-plugin-modulepreload/index.js:23:33)
After adding:
import fs from 'fs';
at the top of rollup config
Getting this:
[!] (plugin modulepreload) TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received null
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received null
at open (internal/fs/promises.js:306:10)
I imagine I'm just not setting it up right, but starting simply first, I'm getting some undefined messages when I try to build with any of the standard setups in the readme. (in plugins)
result:
(in plugins)
result:
After adding:
import fs from 'fs';
at the top of rollup configGetting this:
Here's my project for reference. I've created the modulepreload branch for tackling this problem and pushed code producing the build error. https://github.com/SamuelFrost/portfolio/tree/modulepreload/portfolio-application