Giter Site home page Giter Site logo

Comments (11)

evolutionjay avatar evolutionjay commented on May 21, 2024

same

ERROR in ./src/framework7-vue.js
Module build failed: SyntaxError: 'with' in strict mode (20:36)

  18 | }(this, (function () {
  19 | 
> 20 | var StatusBar = {render: function(){with(this){return _m(0)}},staticRenderFns: [function(){with(this){return _h('div',{staticClass:"statusbar-overlay"})}}],};
     |                                     ^
  21 | 
  22 | var Panel = {render: function(){with(this){return _h('div',{staticClass:"panel",class:classesObject,style:({'display': opened ? 'block' : ''}),on:{"open":onOpen,"opened":onOpened,"close":onClose,"closed":onClosed}},[_t("default")])}},staticRenderFns: [],
  23 |   props: {

 @ ./src/main.js 15:21-56

from framework7-vue.

gongph avatar gongph commented on May 21, 2024

你的问题解决了吗? @evolutionjay

from framework7-vue.

evolutionjay avatar evolutionjay commented on May 21, 2024

@gongph
No.

from framework7-vue.

nolimits4web avatar nolimits4web commented on May 21, 2024

It is a problem of Vue itself, just don't include this plugin in a bundle, include it as a separate file

from framework7-vue.

evolutionjay avatar evolutionjay commented on May 21, 2024

No! it's not vue's problem.

from framework7-vue.

nolimits4web avatar nolimits4web commented on May 21, 2024

@evolutionjay https://github.com/vuejs/vue/search?q=with+in+strict+mode&type=Issues&utf8=%E2%9C%93

from framework7-vue.

gongph avatar gongph commented on May 21, 2024

When I compile the templates, then bundle them by rollupjs, it will throw a error 'with' in strict mode. How can I handle this? @nolimits4web

from framework7-vue.

evolutionjay avatar evolutionjay commented on May 21, 2024

with is not allowed in strict mode or inside ES2015 modules, but this doesn't mean it's deprecated or that it's not valid ES2015.

from framework7-vue.

nolimits4web avatar nolimits4web commented on May 21, 2024

the problem is with vue-template-compilier that generate code using "with" statement. It is valid, but webpack through errors when you try to import it

from framework7-vue.

gongph avatar gongph commented on May 21, 2024

@evolutionjay #11

from framework7-vue.

nolimits4web avatar nolimits4web commented on May 21, 2024

It is fixed now with the new release of Vue

from framework7-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.