Base solution for your next web application
Open Closed

create-bundles = "unknown word" error #7363


User avatar
0
kfrancis created

I've setup our project to follow this branching guide for updating zero: https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-268093697

I was able to quickly get everything updated and fixed up the conflicts (weren't many), but I'm having a new issue with npm run create-bundles now.

I notice that the gulpfile was updated, it seems like it's being extremely picky about any custom js

To this project, I've added client side validation - so that file just fixes a few issues related to that (+ unobtrusive). I don't see anything wrong with the content, and it looks like it's being picked up in the gulp-postcss process which seems wrong.

The viewScripts definition seems like it should be picking up the wwwroot/Common/jquery-validation-custom.js file and it shouldn't be in viewStyles.

Any thoughts?

Coincidentally, it looks like npm run build now does something, even though it's breaking on every autogenerated line like: _.filter(abp.custom.EntityHistory.EnabledEntities, entityType => entityType === _entityTypeFullName).length === 1; (Caused by: SyntaxError: Unexpected token: operator «>» that arrow, which I'm guessing should be function(entityType){return entityType === _entityTypeFullName;}


1 Answer(s)
  • User Avatar
    0
    kfrancis created

    This was my fault. I had a script bundle in the styles bundle section.