Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot set property 'Autolinker' of undefined #10

Closed
bobiblazeski opened this issue Nov 17, 2015 · 4 comments
Closed

Comments

@bobiblazeski
Copy link

I'm trying to use with React webpack project
(function (root, factory) {
if (true) {
// AMD. Register as an anonymous module unless amdModuleId is set
!(WEBPACK_AMD_DEFINE_ARRAY = [], WEBPACK_AMD_DEFINE_RESULT = function () {
return root['Autolinker'] = factory();
}.apply(exports, WEBPACK_AMD_DEFINE_ARRAY), WEBPACK_AMD_DEFINE_RESULT !== undefined && (module.exports = WEBPACK_AMD_DEFINE_RESULT));
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
} else {
root['Autolinker'] = factory();
}

@juanpaulo
Copy link

I'm having the same issue. Have you figured it out @bobiblazeski ?

@bobiblazeski
Copy link
Author

@juanpaulo Sorry I don't work on that project anymore and don't remember did I solved it or used other library. :(

@kswgit
Copy link

kswgit commented Feb 14, 2017

@juanpaulo I fixed it but this is not ideal. Have you found another way?

edit

node_modules/remarkable/node_modules/autolinker/dist/Autolinker.js

2 if (typeof define === 'function' && define.amd) {

to

2  if ( root && typeof define === 'function' && define.amd) {

gregjacobs/Autolinker.js#86 (comment)
LeZuse/Autolinker.js@cb8fcc5

@mxstbr
Copy link
Collaborator

mxstbr commented Sep 26, 2017

Can't replicate this, hope y'all figured out the issue!

@mxstbr mxstbr closed this as completed Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants