NoMethodError: undefined method `start_with?' for nil:NilClass
See original GitHub issueNoMethodError: undefined method `start_with?’ for nil:NilClass
My setup:
ruby 2.4.2p198
rails-5.1.6
uglifier-4.1.11
therubyracer-0.12.3
Error raised during deployment. Recently I’ve added @ckeditor/ckeditor5-build-classic npm package which contains ES6 syntax.
# also I've changed
config.assets.js_compressor = :uglifier
# to
config.assets.js_compressor = Uglifier.new(harmony: true)
Now I’m getting this error. Here is capistrano log
Reproduction:
Uglifier.compile(File.read("node_modules/@ckeditor/ckeditor5-build-classic/build/ckeditor.js"), harmony: true)
> NoMethodError: undefined method `start_with?' for nil:NilClass
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:13
Top Results From Across the Web
ruby - Why am I getting NoMethodError undefined method for nil
Here @board is an instance variable. Instance variables belong to an object (instance), hence why they are called instance variables.
Read more >NoMethodError: undefined method for nil:NilClass... Explained
This is a common Ruby error which indicates that the method or attribute for an object you are trying to call on an...
Read more >[solved] include? problem (undefined method `include?' for nil ...
' for nil:NilClass (NoMethodError)”. I've come up with 2 solutions to fix the error below; 1st Solution-MY CODE-. print “What's your name?” user_input ......
Read more >NoMethodError (undefined method `inner_html' for nil ...
Updating a category topic fails with the message «NoMethodError (undefined method `inner_html' for nil:NilClass)» when the topic's contents ...
Read more >Undefined method 'header' for nil:NilClass · Issue #128 - GitHub
I tried to install and run TenderJIT but it won't start with following error upon rake compile: /usr/bin/ruby -I lib ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using the options bellow did the tricky to me. No idea why though ¯\(°_o)/¯
Uglifier.new(harmony: true, compress: { unused: false })
FWIW, this is fixed in latest Uglifier 4.2.0 Gem: