Static GitHub Issues

[2114] Problem with rendering raw HTML

prev: Lots of errors when running tests: Uncaught [TypeError: Cannot read property 'split' of undefined]
next: How to implement vuex nested module in nuxt store modules mode?

(Emitted value instead of an instance of Error) Error compiling template:

<div> {{{ rawHTML }}} </div>
  • invalid expression: {{{ rawHTML }}}

    @ ./node_modules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":..... @ ./pages/...... @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi webpack-hot-middleware/client?name=client&reload=true&timeout=3000&path=/__webpack_hmr ./.nuxt/client.js

<template>
  <div>
    {{{ rawHTML }}}
  </div>
</template>
<script>
export default {
  data () {
    return {
      rawHTML: '<span>hello</span>'
    }
  }
}
</script>
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1874">#c1874</a>)</em></sub></div>