require.js uncaught typeerror: cannot read property '__module_path__; of undefined

Joshua Harris

So I've just started to try to get to grips with require.js and it doesn't seem to be working. When I include it in my html using the tag:

<script data-main="scripts/main" src="bower_components/require/build/require.js"></script>

I get the following error upon loading the page in chrome

Uncaught TypeError: Cannot read property '__MODULE_PATH__' of undefined  -> require.js:538

In firefox I get a slightly different error:

TypeError: parent is undefined -> require.js:538

No idea how I could be causing this problem as It's a fresh install of require.js and I have no code in my main.js yet.

Thanks in advance

IProblemFactory

Make sure that in dependecies list you put requirejs, not require, since that is slightly different project, (created just few days ago): http://bower.io/search/?q=require

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

jQuery Uncaught TypeError: Cannot read property 'nodeType' of undefined

来自分类Dev

如何解决 Uncaught TypeError: Cannot read property 'call' of undefined?

来自分类Dev

了解控制台错误“TypeError: undefined is not an object”和“Uncaught TypeError: Cannot read property '0' of undefined”

来自分类Dev

require.js未捕获的typeerror:无法读取属性'__module_path__; 未定义

来自分类Dev

Node.js TypeError: Cannot read property 'file' of undefined

来自分类Dev

在类构造函数中 this.button = document.getElementById('button') / Uncaught TypeError: Cannot read property 'addEventListener' of undefined?

来自分类Dev

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'public_id' of undefined

来自分类Dev

Uncaught TypeError:使用require.js时undefined不是一个函数

来自分类Dev

显示“Uncaught TypeError: Can not read property 'length' of undefined”错误的原因是在 JavaScript 中

来自分类Dev

Vuex Cannot read property of undefined

来自分类Dev

Uncaught TypeError: Cannot call method 'getLocalName' of undefined

来自分类Dev

React Hooks Problem: Unhandled Rejection (TypeError): Cannot read property 'signup' of undefined

来自分类Dev

为什么我会收到 TypeError: Cannot read property 'length' of undefined?

来自分类Dev

Cannot read property 'errors' of undefined in angular 2

来自分类Dev

Cannot read property '$options' of undefined making external js file for head options

来自分类Dev

Issue in typescript with generics: Cannot read property 'prototype' of undefined

来自分类Dev

为什么JS Fiddle给我错误`Uncaught TypeError:undefined不是function`?

来自分类Dev

未捕获的TypeError:使用require.js时undefined不是函数

来自分类Dev

Twitter Uncaught TypeError:undefined不是函数

来自分类Dev

Hovertool Bokeh "Cannot read property"

来自分类Dev

Uncaught TypeError:使用jQuery时undefined不是函数

来自分类Dev

使用fadeIn()时,jQuery“ Uncaught TypeError:undefined is a function”;

来自分类Dev

Uncaught TypeError:undefined不是函数-猫头鹰轮播

来自分类Dev

如何修复Uncaught(承诺)TypeError:无法设置undefined属性

来自分类Dev

使用fadeIn()时,jQuery“ Uncaught TypeError:undefined is not a function”;

来自分类Dev

错误消息“Uncaught TypeError: undefined is not a function”(数据表)

来自分类Dev

TypeError: Cannot call method 'get' of undefined

来自分类Dev

TypeError:undefined不是Node JS函数

来自分类Dev

typeerror undefined 不是 node js 中的函数

Related 相关文章

  1. 1

    jQuery Uncaught TypeError: Cannot read property 'nodeType' of undefined

  2. 2

    如何解决 Uncaught TypeError: Cannot read property 'call' of undefined?

  3. 3

    了解控制台错误“TypeError: undefined is not an object”和“Uncaught TypeError: Cannot read property '0' of undefined”

  4. 4

    require.js未捕获的typeerror:无法读取属性'__module_path__; 未定义

  5. 5

    Node.js TypeError: Cannot read property 'file' of undefined

  6. 6

    在类构造函数中 this.button = document.getElementById('button') / Uncaught TypeError: Cannot read property 'addEventListener' of undefined?

  7. 7

    UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'public_id' of undefined

  8. 8

    Uncaught TypeError:使用require.js时undefined不是一个函数

  9. 9

    显示“Uncaught TypeError: Can not read property 'length' of undefined”错误的原因是在 JavaScript 中

  10. 10

    Vuex Cannot read property of undefined

  11. 11

    Uncaught TypeError: Cannot call method 'getLocalName' of undefined

  12. 12

    React Hooks Problem: Unhandled Rejection (TypeError): Cannot read property 'signup' of undefined

  13. 13

    为什么我会收到 TypeError: Cannot read property 'length' of undefined?

  14. 14

    Cannot read property 'errors' of undefined in angular 2

  15. 15

    Cannot read property '$options' of undefined making external js file for head options

  16. 16

    Issue in typescript with generics: Cannot read property 'prototype' of undefined

  17. 17

    为什么JS Fiddle给我错误`Uncaught TypeError:undefined不是function`?

  18. 18

    未捕获的TypeError:使用require.js时undefined不是函数

  19. 19

    Twitter Uncaught TypeError:undefined不是函数

  20. 20

    Hovertool Bokeh "Cannot read property"

  21. 21

    Uncaught TypeError:使用jQuery时undefined不是函数

  22. 22

    使用fadeIn()时,jQuery“ Uncaught TypeError:undefined is a function”;

  23. 23

    Uncaught TypeError:undefined不是函数-猫头鹰轮播

  24. 24

    如何修复Uncaught(承诺)TypeError:无法设置undefined属性

  25. 25

    使用fadeIn()时,jQuery“ Uncaught TypeError:undefined is not a function”;

  26. 26

    错误消息“Uncaught TypeError: undefined is not a function”(数据表)

  27. 27

    TypeError: Cannot call method 'get' of undefined

  28. 28

    TypeError:undefined不是Node JS函数

  29. 29

    typeerror undefined 不是 node js 中的函数

热门标签

归档