-
Notifications
You must be signed in to change notification settings - Fork 197
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
Unexpected token const MULTISELECT_VALUE_ACCESSOR:<---on AOT compile #108
Comments
The Unexpected token error makes little sense to me... |
Try edit multiselect-dropdown.ts in place and remove the |
You can also try removing this part:
and adding it to the provider like this:
|
Try edit multiselect-dropdown.ts in place and remove the : any type annotation. Next, Trying this: const MULTISELECT_VALUE_ACCESSOR: any = { @component({ |
Don't know if this will help, but just in case. More info:
Running these commands Contents of config files:
rollup-config.js
|
I'm getting the same thing using WebPack to combine into into vendor file.
|
This is caused by |
It seems to be as you say. Taking the code out of github and placing into my project as my own typescript file, it works as expected. So is the fix for the webPack issues need to be addressed in the node packaging or on the configuration of my webpack? |
I was not able to get this running using the npm install. As stated above, I could run the application but it would not AOT compile. Finally gave up and included the typescript file (multiselect-dropdown.ts) as a part of my project. Now everything works fine including the compile. |
So you closed this saying what? Don't use the npm package and just use the source and add it directly to the project as a typescript file? Just trying to understand what the suggested resolution? |
Definitely in the package. In the meanwhile you can tell Webpack to exclude node_modules except this package, maybe with a comment explaining the reason. This comment shows how it can be done. |
Installed version: "angular-2-dropdown-multiselect": "^1.0.5", (from package.json)
APP set up according to: https://angular.io/docs/ts/latest/cli-quickstart.html
AOT set up according to: https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
Control works fine when run live. This is an issue that surfaces upon AOT compile (npm run build:aot). This error presented itself once the control was updated to version 1.0.5. Was running an older version of the control and AOT worked fine. No now, on AOT compile, receive the following error:
Feature Module:
Consuming Component:
Consuming Template:
System.config.extra.js:
The text was updated successfully, but these errors were encountered: