You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERR app\components\my-component.js Transformation error
SyntaxError: 'import' and 'export' may only appear at the top level (15:4)
at Parser.pp.raise (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\location.js:24:13)
at Parser.pp.parseStatement (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\statement.js:111:29)
at Parser.parseStatement (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\plugins\flow.js:655:22)
at Parser.pp.parseBlock (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\statement.js:442:21)
at Parser.pp.parseFunctionBody (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\expression.js:747:22)
at Parser.parseFunctionBody (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\plugins\flow.js:643:20)
at Parser.pp.parseMethod (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\expression.js:717:8)
at Parser.pp.parseObjPropValue (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\expression.js:658:23)
at Parser.parseObjPropValue (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\plugins\flow.js:891:13)
at Parser.pp.parseObj (C:\Users\Benjamin\AppData\Roaming\npm\node_modules\ember-modules-codemod\node_modules\babel-core\node_modules\babylon\lib\parser\expression.js:640:10)
Dynamic import docs: https://github.com/ef4/ember-auto-import#dynamic-import
Produces the following error:
Environment
The text was updated successfully, but these errors were encountered: