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

Error running the example script #3

Open
manuelroth opened this issue May 10, 2019 · 1 comment
Open

Error running the example script #3

manuelroth opened this issue May 10, 2019 · 1 comment

Comments

@manuelroth
Copy link

Hi @rastapasta,
This module looks really nice. Thank you for making it. I would love to play around with it but struggle to get it running:

I get the following error when trying to run it:

➜  filter-mbtiles node index.js 
internal/modules/cjs/loader.js:584
    throw err;
    ^

Error: Cannot find module 'coffee-script/register'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/manuelroth/dev/filter-mbtiles/node_modules/tilegrinder/index.js:2:1)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

It requires a module coffee-script/register thats not defined in the package.json -> https://github.com/rastapasta/tilegrinder/blob/master/index.js#L2

Do you have any idea what the problem could be?

@mrMetalWood
Copy link

Just ran into the same issue. The problem is that coffee-script is now coffeescript. It should work when you replace require('coffee-script/register'); with require('coffeescript/register');

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