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

SyntaxError: Unexpected character '' (2:0) while parsing htmlstrip-native/build/Release/htmlstrip.node #13

Closed
dzoba opened this issue May 20, 2015 · 2 comments

Comments

@dzoba
Copy link

dzoba commented May 20, 2015

I keep running in to this error when trying to use htmlstrip-native. Any one else?

[16:18:05] SyntaxError: Unexpected character '�' (2:0) while parsing /vagrant/src/ganges/node_modules/htmlstrip-native/build/Release/htmlstrip.node while parsing file: /vagrant/src/ganges/node_modules/htmlstrip-native/build/Release/htmlstrip.node
    at Stream.end (/vagrant/src/ganges/node_modules/browserify/node_modules/insert-module-globals/index.js:75:21)
    at _end (/vagrant/src/ganges/node_modules/browserify/node_modules/insert-module-globals/node_modules/through/index.js:65:9)
    at Stream.stream.end (/vagrant/src/ganges/node_modules/browserify/node_modules/insert-module-globals/node_modules/through/index.js:74:5)
    at Transform.onend (/vagrant/src/ganges/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:523:10)
    at Transform.g (events.js:180:16)
    at Transform.emit (events.js:117:20)
    at /vagrant/src/ganges/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:965:16
    at process._tickCallback (node.js:442:13)

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Cannot find module './build/Debug/htmlstrip.node' from '/vagrant/src/ganges/node_modules/htmlstrip-native'
    at /vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:21
    at load (/vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
    at onex (/vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
    at /vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
    at Object.oncomplete (fs.js:108:15)
@zaro
Copy link
Owner

zaro commented May 20, 2015

Hi,

Are you truing to use this module with browserify ?
If you do, you should know it doesn't work, as it is native C++ library,
and not JS, so it won't work in the browser.

Cheers,
Zaro

On Wed, May 20, 2015 at 7:19 PM, Chris Dzoba notifications@github.com
wrote:

I keep running in to this error when trying to use htmlstrip-native. Any
ideas?

[16:18:05] SyntaxError: Unexpected character '�' (2:0) while parsing /vagrant/src/ganges/node_modules/htmlstrip-native/build/Release/htmlstrip.node while parsing file: /vagrant/src/ganges/node_modules/htmlstrip-native/build/Release/htmlstrip.node
at Stream.end (/vagrant/src/ganges/node_modules/browserify/node_modules/insert-module-globals/index.js:75:21)
at _end (/vagrant/src/ganges/node_modules/browserify/node_modules/insert-module-globals/node_modules/through/index.js:65:9)
at Stream.stream.end (/vagrant/src/ganges/node_modules/browserify/node_modules/insert-module-globals/node_modules/through/index.js:74:5)
at Transform.onend (/vagrant/src/ganges/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:523:10)
at Transform.g (events.js:180:16)
at Transform.emit (events.js:117:20)
at /vagrant/src/ganges/node_modules/browserify/node_modules/readable-stream/lib/_stream_readable.js:965:16
at process._tickCallback (node.js:442:13)

events.js:72
throw er; // Unhandled 'error' event
^
Error: Cannot find module './build/Debug/htmlstrip.node' from '/vagrant/src/ganges/node_modules/htmlstrip-native'
at /vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:21
at load (/vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /vagrant/src/ganges/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at Object.oncomplete (fs.js:108:15)


Reply to this email directly or view it on GitHub
#13.

@dzoba
Copy link
Author

dzoba commented May 20, 2015

Ah, right. Thanks! Also thanks for responding so quickly :) Closing.

@dzoba dzoba closed this as completed May 20, 2015
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

2 participants