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: Invalid property for defaults:compressed #241

Open
bestpika opened this issue Jun 28, 2019 · 8 comments
Open

Error: Invalid property for defaults:compressed #241

bestpika opened this issue Jun 28, 2019 · 8 comments

Comments

@bestpika
Copy link

'use strict'
const osmosis = require('osmosis')
Error: Invalid property for defaults:compressed
    at Function.module.exports.defaults (D:\tmp\n0use-api-heroku-nodejs\node_modules\libxmljs-dom\node_modules\needle\lib\needle.js:776:13)
    at Object.<anonymous> (D:\tmp\n0use-api-heroku-nodejs\node_modules\libxmljs-dom\lib\HttpRequest.js:5:8)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (D:\tmp\n0use-api-heroku-nodejs\node_modules\libxmljs-dom\lib\Window.js:8:22)
@bestpika
Copy link
Author

bestpika commented Jun 28, 2019

Use npm/pnpm install needle@2.3.0 and the bug will go.

@bestpika bestpika reopened this Jun 28, 2019
@roytz
Copy link

roytz commented Jul 11, 2019

@bestpika it didn't solve the issue

@ggomez91
Copy link

@roytz It worked for me. use these settings in your package.json:
"dependencies": { "needle": "2.3.0", "osmosis": "^1.1.10" }, "resolutions": { "needle": "2.3.0" }

I think this is a bug in the dependencies, right?

@fortydegrees
Copy link

I get the same issue, tried changing package.json and no luck. using node v8.10.0

@fortydegrees
Copy link

fortydegrees commented Sep 23, 2019

I re-installed and got it running, but now I can't load a page and just get:

TypeError: fs.readdirSync is not a function

edit: could not get it working, used cheerio.

@CanRau
Copy link

CanRau commented Oct 28, 2019

Can't get it working, installed needle and osmosis multiple time. I'm on Node v10.16.3

@janproch
Copy link

janproch commented Dec 1, 2019

Problem is in library libxmljs-dom, it worked with needle 2.3.0, but doesn't work with needle 2.4.0. If I add package neddle@2.3.0 and manually delete needle from node_modules in libxmljs-dom directory, than it works. There is 6 months old pull request on github libxmljs/libxmljs-dom#11 , which solves this, but nobody has accepted it. I am not sure, how to solve this systematically.

@wxs77577
Copy link

wxs77577 commented Apr 2, 2020

Same issue today.

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

7 participants