{"record":{"id":"e414d8bbbd0fb14c","repo":"Meituan-Dianping/mpvue","slug":"style-string-staticstyle-interpolation-insi","errorCode":null,"errorMessage":"style=\"${String(staticStyle)}\": Interpolation inside attributes has been deprecated. Use v-bind or the colon shorthand instead.","messagePattern":"style=\"(.+?)\": Interpolation inside attributes has been deprecated\\. Use v-bind or the colon shorthand instead\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/weex-template-compiler/build.js","lineNumber":3509,"sourceCode":"\nvar klass = {\n  staticKeys: ['staticClass'],\n  transformNode: transformNode,\n  genData: genData$1\n};\n\n/*  */\n\nvar normalize = cached(camelize);\n\nfunction transformNode$1 (el, options) {\n  var warn = options.warn || baseWarn;\n  var staticStyle = getAndRemoveAttr(el, 'style');\n  var ref = parseStaticStyle(staticStyle, options);\n  var dynamic = ref.dynamic;\n  var styleResult = ref.styleResult;\n  if (process.env.NODE_ENV !== 'production' && dynamic) {\n    warn(\n      \"style=\\\"\" + (String(staticStyle)) + \"\\\": \" +\n      'Interpolation inside attributes has been deprecated. ' +\n      'Use v-bind or the colon shorthand instead.'\n    );\n  }\n  if (!dynamic && styleResult) {\n    el.staticStyle = styleResult;\n  }\n  var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);\n  if (styleBinding) {\n    el.styleBinding = styleBinding;\n  } else if (dynamic) {\n    el.styleBinding = styleResult;\n  }\n}\n\nfunction genData$2 (el) {\n  var data = '';","sourceCodeStart":3491,"sourceCodeEnd":3527,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/packages/weex-template-compiler/build.js#L3491-L3527","documentation":"Dev-only compiler warning from the style module's transformNode: a static style attribute contains interpolation (style=\"{{ ... }}\"), a deprecated Vue 1.x pattern. The dynamic detection flags it because binding must go through v-bind:style for reactivity and correct parsing in Vue 2.","triggerScenarios":"Thrown at packages/weex-template-compiler/build.js:3509 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Replace interpolated style with :style binding, e.g. :style=\"styleObject\"","Keep purely static styles in the plain style attribute without interpolation"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b","analyzedAt":"2026-09-02T05:17:40.946Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T11:17:12.671Z"}