Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page: index; Invalid regular expression: /\/: \ at end of pattern #12

Open
CosmoMyzrailGorynych opened this issue Jul 15, 2017 · 10 comments

Comments

@CosmoMyzrailGorynych
Copy link
Contributor

Hey @Gottwik ,
I can't develop enduro_admin because of an error while rendering admin UI.
I'm running a fresh version of enduro on Windows 8.1 and get this:

C:\Users\Космо\Documents\GitHub\enduro_admin-Readme-links>enduro start -nr -noadmin --verbose
[03:28:03 | +    9.78] Production server started at port 5000
[03:28:04 | +    0.51] Render started

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
Page: index
Invalid regular expression: /\/: \ at end of pattern
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲

[03:28:04 | +    0.47] Sass compiling started
[03:28:08 | +    3.51] Sass compiling finished

This is probably not referred to index.hbs file 'cause I tried removing all // and it didn't help 😆

BTW instructions on how to run enduro_admin seems to be outdated :/

@CosmoMyzrailGorynych
Copy link
Contributor Author

Ok so it began to finish render without any reason, but I can't see my changes in any enduro project .-.

@Gottwik
Copy link
Owner

Gottwik commented Jul 16, 2017

fixed the readme, it was very old and unnecessarily complicated.

So is this still an issue? Did you pull to the newest version? I did some major fixes related to the _generated and index.html changes.

@CosmoMyzrailGorynych
Copy link
Contributor Author

As I said before, I could render enduro_admin, but leaved it as is and unlinked from my projects.
I will close this issue for tracking purposes, but will reopen it if I or someone else will face such an issue again.

@aleqsio
Copy link

aleqsio commented Aug 13, 2017

Hi, first of all, i really love enduro, thank you so much for all your hard work!

Trying to replace enduro-admin auth with firebase auth, but running into same render problem:

`
C:\Users\User\Alek dokumenty\Programowanie\Private\DietWebsite\enduro-admin>enduro start -nr -noadmin --verbose
[18:28:33 | + 3.83] Production server started at port 5000
[18:28:33 | + 0.13] Render started

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
Page: index
Invalid regular expression: //: \ at end of pattern
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲

[18:28:33 | + 0.16] js compiling not enabled, add babel options to enduro.json to enable
[18:28:33 | + 0] Sass compiling started

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ Sass error ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
assets\css\bootstrap-selection.scss
Error: File to import not found or unreadable: ../vendor/bootstrap/scss/variables.
Parent style sheet: C:/Users/User/Alek dokumenty/Programowanie/Private/DietWebsite/enduro-admin/assets/css/bootstrap-selection.scss
on line 14 of assets/css/bootstrap-selection.scss

@import '../vendor/bootstrap/scss/variables';
^

▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲

[18:28:33 | + 0.05] Sass compiling finished`

Win10, unmodified enduro-admin, downloaded and extracted from zip, not linked to main project... Just can't get it to work 😢

@Gottwik
Copy link
Owner

Gottwik commented Aug 16, 2017

There seem to be two separate issues. I guess the first one is that something is wrong with your /cms/index.js file. Could you maybe post it's content? Or look for unclosed quotes, mispaired brackets...

The second issue is that the sass can't file bootstrap. All you need to do is run bower i to fetch all the depencies.

Let us know if it works out for you, or if your issue persists 😄 .

@Gottwik Gottwik reopened this Aug 16, 2017
@aleqsio
Copy link

aleqsio commented Aug 16, 2017

Yes, running bower -i fixes the sass issue, but i didn't edit the index.js file from the freshly downloaded repo.
https://gist.github.com/aleqsio/42bafa3bb969ca701dd24af52c88f240
Anyways, fixed it by only editing server code in my main admin, no need for rendering it.
But the issue persists in fresh download in a separate folder, so it seems something is wrong with:

  1. the enduro-admin itself
  2. my global enduro install is corrupt.

EDIT:
I tried clean install of enduro (npm install enduro), and it still shows the same error
here is the exact folder where i have this issue: https://github.com/aleqsio/enduro_admin_issue
all the enduro-admin code should be unchanged.
running node_modules.bin\enduro start -nr -noadmin --verbose as to try freshly-installed local enduro
causes:
`[20:46:26 | + 4.3] Production server started at port 5000
[20:46:26 | + 0.18] Render started

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
Page: index
Invalid regular expression: //: \ at end of pattern
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲

[20:46:26 | + 0.18] Sass compiling started
[20:46:28 | + 2.21] Sass compiling finished`

Is there any way to get a more detailed log?

@Gottwik
Copy link
Owner

Gottwik commented Aug 17, 2017

Oh, I just noticed you are on windows. It's definitely windows related, looks like something with the forward vs backward slash I am guessing. I will fix this for you, ok?

@Gottwik
Copy link
Owner

Gottwik commented Aug 19, 2017

Hey, this should be fixed by enduro 1.4.38, just update by running npm i enduro -g.

Let us know if it works for you. Found out couple other tests are failing on windows, but I'll try to fix those asap as well.

@aleqsio
Copy link

aleqsio commented Aug 19, 2017

@Gottwik Yep, now it works!
Had to do "npm i [email protected]", but it renders flawlessly.
Thank you 👍
Did you perhaps run a bower install to fix the sass issue in the update too?

@Gottwik
Copy link
Owner

Gottwik commented Aug 19, 2017

Awesome, glad to hear that. Let us know if you run into any other issues.

I guess people will always have to run bower install to fetch the dependencies, since they are not the part of this repo(they kindof are, because there is the '_generated' folder, but if you plan to develop the admin, you have to fetch them again.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants