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

Module not found: Error: Can't resolve './build/Release/shorter #4

Open
abhimanusharma opened this issue Apr 22, 2021 · 1 comment
Open
Labels

Comments

@abhimanusharma
Copy link

ERROR in ./node_modules/shorter/index.js
Module not found: Error: Can't resolve './build/Release/shorter'
in '/var/www/html/project/node_modules/shorter'

 @ ./node_modules/shorter/index.js 3:14-48
 @ ./resources/js/app.js
 @ multi ./resources/js/app.js ./resources/sass/app.scss

I tried many ways to import this
import {compress, decompress} from "../../node_modules/shorter";
import {compress, decompress} from "shorter";
import shorter from "shorter";

None of above are working

@lovell
Copy link
Owner

lovell commented Apr 22, 2021

This looks like a webpack error - is this code intended for client-side browser use or with a Node.js runtime? This is a native module so only the latter is supported.

Assuming a Node.js runtime, were there any errors at npm install time? What's the output of npm install --verbose shorter?

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

No branches or pull requests

2 participants