Closed jimmck closed 7 years ago
Yaa boo, that's not good.
Thanks for posting. Let me set up a Homestead box and check that out :)
Any JS console errors?
Hi, Good question. Here is the log.
Failed to load resource: the server responded with a status of 404 (Not Found) lib.js:1 Uncaught SyntaxError: Invalid or unexpected token components.css Failed to load resource: the server responded with a status of 404 (Not Found) setup:1 Failed to decode downloaded font: http://cvg.dev/sketchpad/assets/fonts/lato/lato-bold-webfont.woff setup:1 OTS parsing error: invalid version tag setup:1 Failed to decode downloaded font: http://cvg.dev/sketchpad/assets/fonts/lato/lato-bold-webfont.woff setup:1 OTS parsing error: invalid version tag setup.js:1 Uncaught SyntaxError: Invalid or unexpected token setup:1 Failed to decode downloaded font: http://cvg.dev/sketchpad/assets/fonts/lato/lato-bold-webfont.woff setup:1 OTS parsing error: invalid version tag components.css Failed to load resource: the server responded with a status of 404 (Not Found)
Hmm. Weird.
My /sketchpad/setup
on PHP7/Laravel5.4 runs just fine, but I'm getting problems post-installation that I think is composer not adding the new sketchpad namespace (not sure why, and unrelated to yours).
Hi The dump was from console. It's a totally new 5.4 install. I did notice no folders where setup. Where is lib.js sourced from? Run Mac Sierra latest updates. Php7.1 install from Homebrew same for MySQL. I am running latest node 7 but if your not using global should be cool. I will dig in a bit more. Jim
On Apr 2, 2017, at 9:54 PM, Dave Stewart notifications@github.com wrote:
Hmm. Weird.
The lib.js should be fine, not sure why not, and is probably the culprit. Is there any more detail to that one? the component.css is an oversight on my behalf, now removed the font files not loading is strange; it should just load. Are you on Linux? What happens if you open that URL in a new tab? My /sketchpad/setup on the PHP7/Laravel5.4 runs just fine, but Im getting problems post-installation that I think is composer not adding the new sketchpad namespace (not sure why).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
All the assets are loaded via a route and Symfony's BinaryFileResponse directly from davestewart/sketchpad/src/publish/assets
. Makes it much easier to develop without having to copy to public each time I make a change!
Can you SHIFT+CMD+4 (copy) your console output then paste here?
OK. Solved my composer issues; I need to add a composer dumpautoload
to the install (run that manually if you get things running and you get a failed step in the final stage)
Any more info regarding your install, I'll pick up tomorrow.
Thanks for the feedback!
I posted the console output up on the Git issues page
On Apr 2, 2017, at 10:17 PM, Dave Stewart notifications@github.com wrote:
All the assets are loaded via a route and Symfony's BinaryFileResponse directly from davestewart/sketchpad/src/publish/assets. Makes it much easier to develop without having to copy to public each time I make a change!
Can you SHIFT+CMD+4 (copy) your console output then paste here?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Yup, but I'd like to see the screenshot if you can manage that?
Here Ya Go!
On Sun, Apr 2, 2017 at 10:17 PM, Dave Stewart notifications@github.com wrote:
All the assets are loaded via a route and Symfony's BinaryFileResponse directly from davestewart/sketchpad/src/publish/assets. Makes it much easier to develop without having to copy to public each time I make a change!
Can you SHIFT+CMD+4 (copy) your console output then paste here?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davestewart/laravel-sketchpad/issues/2#issuecomment-291034978, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNyu1rFKggt93PpxsnxduVkGguIY4FJks5rsFamgaJpZM4Mw7_T .
Ah - sorry - it didn't work by email!
Just paste it into the comment section live on the thread :) https://github.com/davestewart/laravel-sketchpad/issues/2
Image
Brilliant, thanks. Now click on the "lib.js:1" link, then the "Pretty print" code button so I can see what's going on, like this:
Dave, There is no pretty print icon for the JS sources? If you look at the error, there is a unprintable character at the start of line 1 before the comment.
ïœ/*! jQuery v1.12.3 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=
This is odd as during the course install Laravel54, before I fixed the access permissions for the cache directories you get a little 'square' character on a otherwise blank screen.
Is something polluting your input stream?
That's really odd, and certainly something outside of my experience.
This is the file it's being pulled from:
This is the code which is pulling it:
I wonder if it's a encoding flag on the Symfony class?
Do you want to have a play with that in your install?
FYI. the pretty print button is the {}
on the bottom left of the debug tools sources window
Here check out the main Laravel Welcome page, look upper left corner...
Can you try adding an encoding type to the getAsset()
method?
$response->setCharset('UTF-8');
Or maybe this is a BOM issue? Would make sense as it's the first character in the file.
http://stackoverflow.com/questions/2558172/utf-8-bom-signature-in-php-files
Hey, So we are dealing with a fresh 5.4 install and I changed the welcome blade to my own welcome1 blade that does nothing!!!
<!DOCTYPE html>
And the nonsense character appears.
Setting through Blade processing now.
Now I am hooked as rely on Blade and JS all the time. First time playing with 5.4
And your middleware use is very interesting to me...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
Laravel 5.4 PHP 7.1
Added via composer. Added service provider entry.
When I use sketchpad url, if returns a screen with Title Sketchpad and nothing else.
The URL is rewritten to sketchpad/setup