Git Product home page Git Product logo

requirejs-sync-require-issue's Introduction

Test case for issue:

requirejs/r.js#662

To reproduce:

$ npm install requirejs mocha
$ node_modules/.bin/mocha spec.js

Test should run without unhandled exception but the following happens intermittently (you may need multiple runs):

Uncaught Error: Tried loading "A" at /home/ldd/local/lib/node_modules/mocha/bin/A.js then tried node's require("A") and it failed with error: Error: Cannot find module 'A'
      at /tmp/t19/node_modules/requirejs/bin/r.js:2526:27
      at Object.context.execCb (/tmp/t19/node_modules/requirejs/bin/r.js:1890:33)
      at Object.Module.check (/tmp/t19/node_modules/requirejs/bin/r.js:1106:51)
      at Object.Module.enable (/tmp/t19/node_modules/requirejs/bin/r.js:1383:22)
      at Object.Module.init (/tmp/t19/node_modules/requirejs/bin/r.js:1014:26)
      at callGetModule (/tmp/t19/node_modules/requirejs/bin/r.js:1410:63)
      at Object.context.completeLoad (/tmp/t19/node_modules/requirejs/bin/r.js:1784:21)
      at Function.req.load (/tmp/t19/node_modules/requirejs/bin/r.js:2539:17)
      at Object.context.load (/tmp/t19/node_modules/requirejs/bin/r.js:1879:21)
      at Object.Module.load (/tmp/t19/node_modules/requirejs/bin/r.js:1060:29)
      at Object.Module.fetch (/tmp/t19/node_modules/requirejs/bin/r.js:1050:66)
      at Object.Module.check (/tmp/t19/node_modules/requirejs/bin/r.js:1080:26)
      at Object.Module.enable (/tmp/t19/node_modules/requirejs/bin/r.js:1383:22)
      at Object.context.enable (/tmp/t19/node_modules/requirejs/bin/r.js:1751:39)
      at Object.<anonymous> (/tmp/t19/node_modules/requirejs/bin/r.js:1368:33)
      at /tmp/t19/node_modules/requirejs/bin/r.js:372:23
      at each (/tmp/t19/node_modules/requirejs/bin/r.js:297:31)
      at Object.Module.enable (/tmp/t19/node_modules/requirejs/bin/r.js:1330:17)
      at Object.Module.init (/tmp/t19/node_modules/requirejs/bin/r.js:1014:26)
      at null._onTimeout (/tmp/t19/node_modules/requirejs/bin/r.js:1656:36)
      at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)

requirejs-sync-require-issue's People

Contributors

lddubeau avatar

Watchers

James Cloos avatar  avatar  avatar

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.