Giter VIP home page Giter VIP logo

Comments (7)

sokra avatar sokra commented on May 30, 2024 5

require("!script!./file.js"); should solve it... note the leading ! in the request.

from script-loader.

rachelpipkin avatar rachelpipkin commented on May 30, 2024 2

I was coming across a require not defined error and adding the ! at the beginning like @sokra suggested fixed the issue for me.

from script-loader.

h0gar avatar h0gar commented on May 30, 2024 1

This solved an issue for me but I don't understand. What is the leading ! doing exactly?

from script-loader.

sokra avatar sokra commented on May 30, 2024

Than don't use both on the same file.

from script-loader.

Semigradsky avatar Semigradsky commented on May 30, 2024

😞

from script-loader.

dsthilaire avatar dsthilaire commented on May 30, 2024

Can you please give more details on how to resolve this problem? I am having the same issue, and I'm not following how to implement the suggested solution. I'm new to webpack.

from script-loader.

dsthilaire avatar dsthilaire commented on May 30, 2024

Thanks, that worked.

from script-loader.

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.