0

我在流星中面临模板编译器和静态html之间的冲突。这些是我的包裹:

autopublish             1.0.7  (For prototyping only) Publish the entire database to all clients
ecmascript              0.15.3  Compiler plugin that supports ES2015+ in all .js files
es5-shim                4.8.0  Shims and polyfills to improve ECMAScript 5 support
hot-module-replacement  0.3.0  Update code in development without reloading the page
insecure                1.0.7  (For prototyping only) Allow all database writes from the client
meteor-base             1.5.1  Packages that every Meteor app needs
mobile-experience       1.1.0  Packages for a great mobile user experience
mongo                   1.12.0  Adaptor for using MongoDB and Minimongo over DDP
react-meteor-data       2.3.3  React hook for reactively tracking Meteor data
reactive-var            1.0.11  Reactive variable
shell-server            0.5.0  Server-side component of the `meteor shell` command.
standard-minifier-css   1.7.3  Standard css minifier used with Meteor apps by default.
standard-minifier-js    2.6.1  Standard javascript minifiers used with Meteor apps by default.
static-html             1.3.2  Define static page content in .html files
templating              1.4.1  Allows templates to be defined in .html files
typescript              4.3.5  Compiler plugin that compiles TypeScript and ECMAScript in .ts and .tsx ...

这是我的代码:

<head>
  <title>test1</title>
</head>

<body>
  <div id="react-target">halo</div>
  {{> temp}}
</body>

<template name="temp">
    <h1>hello worls</h1>
</template>
4

0 回答 0