-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is-mergeable-object
is a devDependency
but used in index.js
#245
Comments
I believe this library bundles all it's dependencies. |
Thanks for the quick response. The error I am receiving looks as follows > preconstruct build
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'is-mergeable-object'
Require stack:
- /<path>/flopflip/node_modules/.pnpm/[email protected]/node_modules/deepmerge/index.js
- /<path>/flopflip/node_modules/.pnpm/@[email protected][email protected]/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js
- /<path>/flopflip/node_modules/.pnpm/@[email protected]/node_modules/@preconstruct/cli/cli/dist/cli.cjs.dev.js
- /<path>/flopflip/node_modules/.pnpm/@[email protected]/node_modules/@preconstruct/cli/cli/dist/cli.cjs.js
- /<path>/flopflip/node_modules/.pnpm/@[email protected]/node_modules/@preconstruct/cli/bin.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (/<path>/flopflip/node_modules/.pnpm/[email protected]/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at Object.<anonymous> (/<path>/flopflip/node_modules/.pnpm/[email protected]/node_modules/deepmerge/index.js:1:94)
at Module._compile (/<path>/flopflip/node_modules/.pnpm/[email protected]/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/<path>/flopflip/node_modules/.pnpm/[email protected]/node_modules/deepmerge/index.js',
'/<path>/flopflip/node_modules/.pnpm/@[email protected][email protected]/node_modules/@rollup/plugin-node-resolve/dist/cjs/index.js',
'/<path>/flopflip/node_modules/.pnpm/@[email protected]/node_modules/@preconstruct/cli/cli/dist/cli.cjs.dev.js',
'/<path>/flopflip/node_modules/.pnpm/@[email protected]/node_modules/@preconstruct/cli/cli/dist/cli.cjs.js',
'/<path>/flopflip/node_modules/.pnpm/@[email protected]/node_modules/@preconstruct/cli/bin.js'
]
} |
If you need a quick fix, I'd recommend deepmerge-ts |
Ok. I moved over the |
I confirm this issue(?) to solve: (one of)
Why:
when "types" in package.json, TSLS will know "the package named deepmerge provides symbol deepmerge" |
Erh yeah is-mergeable-object most definitely should be a depedency, not a devDependency... https://github.com/TehShrike/deepmerge/blob/master/index.js#L78 |
This generated a faulty bundle when building with Rollup. Relevant logs:
fixable by installing |
When using
pnpm
and building usingpreconstruct
I stumbled across noticing thatis-mergeable-object
is adevDep
in this project while it's being used also in theindex.js
.Should it be promoted to be a regular dependency?
The text was updated successfully, but these errors were encountered: