Open pingplass123 opened 3 weeks ago
any solution for this issue? @lewisdonovan
I can't replicate your issue. I've created a minimum example in this repo: https://github.com/lewisdonovan/gns-example If you pull this repo and run it locally (see the instructions in the README file) does it work for you?
If so, there's likely something wrong with your setup. Providing a minimum example of your non-working code will help me to identify the issue for you.
If the minimum example I've provided doesn't work, then it's likely an incompatibility with your environment. If you can share details of what system/server environment you're running this on, I can help you to find the issue.
this repo: https://github.com/lewisdonovan/gns-example is working but my project is using nestjs so i use this for api getting news and then response back
Ok, great that we've narrowed that down. So now if you can provide a minimum reproducible example?
Providing a minimum example of your non-working code will help me to identify the issue for you.
☝️
Hi, I wonder if you have solved this yet. I use nest js and stumble into the same problem. For me it's because how NestJs or Ts look for type. Converting:
import googleNewsScraper from 'google-news-scraper';
into
const googleNewsScraper = require('google-news-scraper');
solved the issue for me
and this is my code
by the i use nestjs typescript