I was using this to build a Website but I am facing issues. The latest one is with the sample project. Sharing the steps to reproduce the error
import { ReactiveVar } from '@blastjs/reactive-var';
const { LocalCollection } = require("@blastjs/minimongo/dist/local_collection");
export const Data = new LocalCollection("data");
// require('./header.js');
// require('./sidenav.js');
require('./main.html');
Template.main.onCreated(function onCreated() {
setInterval(function(){
Data.insert({data: Date.now()})
},1000);
});
Template.main.helpers({
allData() {
return Data.find({});
},
});
<template name="main">
{{#each allData}}
{{data}}
{{/each}}
</template>
<template name="main">
<div> Hello</div>
{{#each allData}}
{{data}}
{{/each}}
</template>
This would stop working. You will not be able to compile using npx webpack