Need help with server-render and fourseven:scss package


#1

The version of Meteor: 1.6.0.1
The operating system: Ubuntu linux 16.04
I use package fourseven:scss to compile scss files, it works fine if I don’t call onPageLoad function on server.

I import scss file by simple command in my js file:

import ‘./site.scss’;
here is error:

W20171209-22:46:01.827(7)? (STDERR) /home/minhna/.meteor/packages/meteor-tool/.1.6.0_1.14od3k.cmakv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20171209-22:46:01.828(7)? (STDERR) throw(ex);
W20171209-22:46:01.828(7)? (STDERR) ^
W20171209-22:46:01.828(7)? (STDERR)
W20171209-22:46:01.828(7)? (STDERR) Error: Cannot find module './site.scss’
W20171209-22:46:01.829(7)? (STDERR) at makeMissingError (packages/modules-runtime.js:231:12)
W20171209-22:46:01.829(7)? (STDERR) at require (packages/modules-runtime.js:241:19)
W20171209-22:46:01.829(7)? (STDERR) at site.js (imports/ui/layouts/site/site.js:1:435)
W20171209-22:46:01.829(7)? (STDERR) at fileEvaluate (packages/modules-runtime.js:343:9)
W20171209-22:46:01.829(7)? (STDERR) at require (packages/modules-runtime.js:238:16)
W20171209-22:46:01.830(7)? (STDERR) at routes.js (imports/startup/both/routes.js:1:301)
W20171209-22:46:01.830(7)? (STDERR) at fileEvaluate (packages/modules-runtime.js:343:9)
W20171209-22:46:01.830(7)? (STDERR) at require (packages/modules-runtime.js:238:16)
W20171209-22:46:01.830(7)? (STDERR) at ssr-init.js (imports/startup/server/ssr-init.js:1:375)
W20171209-22:46:01.830(7)? (STDERR) at fileEvaluate (packages/modules-runtime.js:343:9)
=> Exited with code: 1

I pushed an example to github at: https://github.com/minhna/meteor-server-render-fourseven

Thank you.