Coder Social home page Coder Social logo

Comments (6)

tangrammer avatar tangrammer commented on July 24, 2024 1

After a bit of more team working on that, We came upon that in webpack development mode your window isn't your iframe.window

from expose-loader.

sokra avatar sokra commented on July 24, 2024

yeah... better use the --inline mode of the webpack-dev-server. It's cooler and easier...

from expose-loader.

framerate avatar framerate commented on July 24, 2024

I think I'm having the same misunderstanding here...

require('expose?React!react');

just gives me

Error: Cannot find module 'expose?React!react'

so I think a step is missing from the tutorial readme? (or its late and I missed it)

from expose-loader.

sokra avatar sokra commented on July 24, 2024

Error: Cannot find module 'expose?React!react'

This is not a webpack error.

Are you trying to run this in node.js?

from expose-loader.

framerate avatar framerate commented on July 24, 2024

This is in my webpack.config.js file.

Is that not meant how to do it? I was unclear based on the README.

My goal was just to get React dom tools to work again.

from expose-loader.

levithomason avatar levithomason commented on July 24, 2024

Lost here as well. I've tried both the require and config approaches to no avail. Double checked the docs on loaders but can't seem to get anything exposed to the window in either case.

EDIT
Here's my config:

module: {
  loaders: [
    {test: /index\.js$/, loader: 'expose?anny'}
  ]
}

from expose-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.