Why am I getting require is not defined in my jsbin code?

5925
5
Jump to solution
07-30-2015 07:10 AM
ChrisSergent
Regular Contributor III

I was testing my application and the text value does not display in Google Chrome, the most recent version. So, I then tested my code in jsbin at: JS Bin - Collaborative JavaScript Debugging  and I receive the following error: 

I searched on here for require is not defined and did not see anything similar.

What's causing this error?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

Looks like jsbin doesn't like http links, so change script tag to https

<script src="https://js.arcgis.com/3.14"></script>

View solution in original post

5 Replies
ChrisSmith7
Frequent Contributor

Chris,

Does this work ok for you?

Wrong link... updating...

0 Kudos
ChrisSergent
Regular Contributor III

It does, but that's 3.8. Did you notice something?

0 Kudos
ChrisSmith7
Frequent Contributor

Updated link!

JS Bin - Collaborative JavaScript Debugging

I took a working project and inserted your code - no errors, at least.

ReneRubalcava
Frequent Contributor

Looks like jsbin doesn't like http links, so change script tag to https

<script src="https://js.arcgis.com/3.14"></script>

ChrisSmith7
Frequent Contributor

Nice catch! You can also just set the URL back to http to avoid mixed content - that seems to work, too, which is why it's working in my sample - https://community.esri.com/external-link.jspa?url=http://jsbin.com/dabamobuga/1/edit?html,console,ou...