-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Npm is undefined #244
Comments
True. @sethmurphy18, can you look into this. It seems
And |
@mitar i am not using it specifically. It seems to be used by static-html. I am not sure why it would use it on the client. |
I am not 100% sure. I know some packages on Atmosphere use this. I could add a script on the server that requires then exports it. |
Hello, |
Hm, an interesting question is why we ship spacebars compiler by default to the client? This I think is strange. |
The file is being executed by both server and client. UglifyJSMinify must be imported within the _beautify function. |
The Did we ever get to the bottom of why we needed a It should be possible to |
What I worry is why would people get this error, if Anyway, can one import a |
@mitar See my ninja-edit (last paragraph) above: Yes, I believe it should be possible to
This is a legit concern. If they are getting this error on the client, then it must be getting included on the client for some reason. I have not had a chance to investigate more. |
So I think the easiest and best approach is to not do beautification on the client side for now. I do not even know of use cases where people really compile blaze templates on the client side. We can see if they need this feature, we can think at that time what to do. So I will just make it so that only server side does this. The other two concerns I have, still unresolved, are:
|
Released as 2.3.2. |
spacebars-compiler@1.1.1 --> spacebars-compiler@1.1.0 , Solved it all .. |
@mokaid: Try going to spacebars-compiler@1.1.2. That should also work. It does not for you? |
@mitar worked perfectly .. |
+1 on working.
|
Updating spacebars-compiler to 1.1.1 gives an error
Npm is undefined
while requiringuglify-js
. Iassume it is because of 459f24f#diff-88dc7475eedf918122374be6d7c2c151L5.Reverting to 1.1.0 works.
The text was updated successfully, but these errors were encountered: