Giter Club home page Giter Club logo

Comments (6)

RickyRoller avatar RickyRoller commented on July 26, 2024 1

I added squel to the global variables in my build and stopped importing it throughout the app. Unfortunate, but now it works.
My use case is with an angular-cli build (which is using webpack 4) but there is a scripts property in the build that allows you to globally load the script (same as adding the script tag to index.html)

from squel.

RickyRoller avatar RickyRoller commented on July 26, 2024

I'm seeing the same issue. Has anyone been able to find a way around it? It looks like the squel.select() doesn't return the squel object after it's been minified, so it can't be chained.

from squel.

jonathanpipe avatar jonathanpipe commented on July 26, 2024

I ended up excluding it from webpack build and added it as an external:

In webpack config

	config.externals = {
		squel: 'squel'
	};

In html

<script type="text/javascript" src="/assets/externals/squel.min.js"></script>

from squel.

FrancescoBorzi avatar FrancescoBorzi commented on July 26, 2024

Confirmed, same problem here. @hiddentao can you please have a look at this?

from squel.

FrancescoBorzi avatar FrancescoBorzi commented on July 26, 2024

@RickyRoller thanks a lot for the tip, I'm also using Angular and solved this way: azerothcore/Keira3@98f191e

However, it's really a pity to have such a bug :(

from squel.

taibui-rogue avatar taibui-rogue commented on July 26, 2024

has any one found a solution for React JS?

from squel.

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.