We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 885b823 commit 8abbda7Copy full SHA for 8abbda7
1 file changed
packages/reactivity/src/reactive.ts
@@ -254,7 +254,11 @@ function createReactiveObject(
254
) {
255
if (!isObject(target)) {
256
if (__DEV__) {
257
- console.warn(`value cannot be made reactive: ${String(target)}`)
+ console.warn(
258
+ `value cannot be made ${isReadonly ? 'readonly' : 'reactive'}: ${String(
259
+ target
260
+ )}`
261
+ )
262
}
263
return target
264
0 commit comments