intelllex / react-pdf

Simple and fancy PDF Viewer based on pdf.js 📄⚡️
https://intelllex.github.io/react-pdf
119 stars 34 forks source link

Error: Cannot find module './index.scss' #5

Closed ralphievolt closed 3 years ago

ralphievolt commented 4 years ago

I'm having trouble using this package.

This is the web console log error

modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:232 Uncaught Error: Cannot find module './index.scss'

if I comment this import ReactPDF from "@intelllex/react-pdf"; the error goes away so this let me conclude that the error is is the code.

I'm using react

trinhngocdieu commented 4 years ago

Hi @ralphievolt, thank you for reporting the issue. May I know the react version and node version you're using?

ralphievolt commented 4 years ago

"react": "^16.13.1",

12.14.0

I'm using MeteorJs

trinhngocdieu commented 4 years ago

@ralphievolt I am not so sure why scss does not work in MeteorJS. But I think you can add this package to support SCSS in your MeteorJS project: meteor add fourseven:scss (https://github.com/Meteor-Community-Packages/meteor-scss)