Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

change ophan module name to stop define() curl.js error #153

Merged
merged 1 commit into from
Feb 4, 2015

Conversation

feedmypixel
Copy link
Contributor

before

We have been seeing the following error when curl loads the Membership Ophan script.
Note the Membership Ophan script loads.

screen shot 2015-02-04 at 12 05 12

after

Changing the module name to 'ophan/membership'

curl.js expects a named module to use its true name. There are no single-word module names in a package. All module names in packages take the form "[package-name]/[module-path]". ref

The error goes away and the Membership Ophan script loads.

screen shot 2015-02-04 at 12 17 36

@rtyley
Copy link
Member

rtyley commented Feb 4, 2015

👍 just talked through this with @feedmypixel . To resummarise:

feedmypixel added a commit that referenced this pull request Feb 4, 2015
change ophan module name to stop define() curl.js error
@feedmypixel feedmypixel merged commit 9c92ec4 into master Feb 4, 2015
@feedmypixel feedmypixel deleted the fix-curl-define-error-ophan branch February 4, 2015 12:39
@prout-bot
Copy link

Overdue on PROD (merged by @feedmypixel 15 minutes and 2 seconds ago) What's gone wrong?

@prout-bot
Copy link

Seen on PROD (merged by @feedmypixel 17 minutes and 54 seconds ago) Please check your changes!

@philwills
Copy link
Contributor

AMD named module loading is such a needless minefield. 😿

@rtyley
Copy link
Member

rtyley commented Feb 4, 2015

This went out with TeamCity build 4479... let's see if the errors die down...

@rtyley
Copy link
Member

rtyley commented Feb 4, 2015

@davidrapson
Copy link
Contributor

@feedmypixel @rtyley Great work, glad to get rid of this noise.

@feedmypixel Is the named module issue that caused this just curl idiosyncrasy? Would be interesting to know if this would happen with the default requirejs module loader / almond.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants