cbellorini

Joined

590 Experience
5 Lessons Completed
0 Questions Solved

Activity

Hey Guys,

I am using rails 5.2 and I followed your instructions. however , I got this error in the chrome console when I am trying to use Tailwind in my app I run on localhost:3000 :

Uncaught Error: Module build failed (from ./node_modules/postcss-loader/src/index.js):
Error: Specified Tailwind config file "/Users/chabel/Desktop/depot/javascript/css/tailwind.js" doesn't exist.
    at _default (:3000/Users/chabell/Desktop/depot/node_modules/tailwindcss/lib/lib/registerConfigAsDependency.js:14)
    at _postcss.default.plugin.config (:3000/Users//chabel/Desktop/depot/node_modules/tailwindcss/lib/index.js:62)
    at creator (:3000/Users/chabel/Desktop/depot/node_modules/postcss/lib/postcss.js:133)
    at Object.<anonymous> (:3000/Users/chabel/Desktop/depot/postcss.config.js:7)
    at Module._compile (:3000/Users/chabel/Desktop/depot/node_modules/v8-compile-cache/v8-compile-cache.js:192)
    at requireFromString (:3000/Users/chabel/Desktop/depot/node_modules/require-from-string/index.js:28)
    at parseJsFile (:3000/Users/chabel/Desktop/depot/node_modules/postcss-load-config/node_modules/cosmiconfig/dist/loadJs.js:15)
    at <anonymous>
    at Object../node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./app/javascript/css/application.css (application.js:16)
    at __webpack_require__ (bootstrap:19)
    at Object../app/javascript/css/application.css (application.css:2)
    at __webpack_require__ (bootstrap:19)
    at Module../app/javascript/packs/application.js (application.js:1)
    at __webpack_require__ (bootstrap:19)
    at bootstrap:83
    at bootstrap:83

I think tailwind.js in javascript/css is empty. here is the code contained in this file:

module.exports = {
  theme: {
    extend: {}
  },
  variants: {},
  plugins: []
}

Do you any idea sto solve this problem ?
Thanks for your help.

Posted in Impossible to install Nokogiri - OSX Mojave 10.14.2

Both of them does not work. it comes with the same error : libxml2 is missing. Please locate mkmf.log to investigate how it is failing.

Posted in Impossible to install Nokogiri - OSX Mojave 10.14.2

Yes, I tried your line from the guide.
then I ran gem install nokogiri
I got a another error:

RROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    current directory: /Users/charbell/.rvm/gems/ruby-2.4.4/gems/nokogiri-1.10.0/ext/nokogiri
/Users/charbell/.rvm/rubies/ruby-2.4.4/bin/ruby -I /Users/charlesbellorini/.rvm/rubies/ruby-2.4.4/lib/ruby/site_ruby/2.4.0 -r ./siteconf20190109-76119-6rjiq6.rb extconf.rb
checking if the C compiler accepts -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for iconv.h... yes
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Thank you very much for your help.

Posted in Impossible to install Nokogiri - OSX Mojave 10.14.2

I already install libxml2 but after having installed it the error is the same.

Posted in Impossible to install Nokogiri - OSX Mojave 10.14.2

Hey Everyone,
Since the recent update (10.14.2) Nokogiri gem cannot be installed in my app.

When I run bundle install , I get the following error:

./siteconf20190109-70456-1diyett.rb extconf.rb --use-system-libraries
checking if the C compiler accepts -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE
-fstack-protector-strong -O2 -pipe... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future...
no
Building nokogiri using system libraries.
Using pkg-config gem version 1.3.2
checking for libxml-2.0... yes
checking for libxslt... yes
checking for libexslt... yes
checking for xmlParseDoc() in libxml/parser.h... no
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
-----
libxml2 is missing.  Please locate mkmf.log to investigate how it is failing.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

I went to the nokigiri installation tutorial, but their solution does not work.

Do you have any idea to solve this problem?