I am having trouble creating my first Aurelia plugin. When testing it out in a new, clean Aurelia CLI project, TypeError: undefined is not an object (evaluating 'target.__useDefault') is displayed in the browser error console.
When calling ensureOriginOnExports(executed, name) in vendor-bundle.js, executed is undefined.
Here's the steps I used:
Downloaded the zip from github.
Unzipped and renamed the folder to
aurelia-plugin-test.Followed the directions on the skeleton github page.
Changed the name in
package.jsontoaurelia-plugin-test.Re-ran
gulp build.Published to npm:
npm publish ./.Created a brand new Aureali CLI project.
Installed the plugin:
npm install aurelia-plugin-test --save.Added the following in
aurelia.json:{ "name": "aurelia-plugin-test", "path": "../node_modules/aurelia-plugin-test/dist/amd", "main": "aurelia-plugin-test" }
Added
aurelia.use.plugin('aurelia-plugin-test');into theconfigurefunction inmain.js.Ran
au runand got the error when loading my plugin.
So I'm just using the skeleton without any code changes. So it just contains the hello-world custom element.