Skip to content
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

Not an issue but a question #1

Open
stackedactors1 opened this issue Nov 12, 2019 · 0 comments
Open

Not an issue but a question #1

stackedactors1 opened this issue Nov 12, 2019 · 0 comments

Comments

@stackedactors1
Copy link

This works perfect for my current project however, if one of my es6 modules has an HTML template reference like this:

import template from './landing-view.component.html';

and run

npm run test 

I get this error.

  {
    "message": "Uncaught Error: Module parse failed: Unexpected token (1:0)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n> <div class=\"sc-cohort-calendar\">\n|   <div class=\"margin--bottom\">\n| \nat webpack:///./src/directives/scheduling-calendar/scheduling-calendar.component.html?:1:1\n\nError: Module parse failed: Unexpected token (1:0)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n> <div class=\"sc-cohort-calendar\">\n|   <div class=\"margin--bottom\">\n| \n    at eval (webpack:///./src/directives/scheduling-calendar/scheduling-calendar.component.html?:1:7)\n    at Object../src/directives/scheduling-calendar/scheduling-calendar.component.html (src/directives/index.js:108:1)\n    at __webpack_require__ (src/directives/index.js:20:30)\n    at eval (webpack:///./src/directives/scheduling-calendar/scheduling-calendar.component.js?:3:93)\n    at Module../src/directives/scheduling-calendar/scheduling-calendar.component.js (src/directives/index.js:120:1)\n    at __webpack_require__ (src/directives/index.js:20:30)\n    at eval (webpack:///./src/directives/index.js?:2:111)\n    at Module../src/directives/index.js (src/directives/index.js:97:1)\n    at __webpack_require__ (src/directives/index.js:20:30)\n    at src/directives/index.js:84:18",
    "str": "Uncaught Error: Module parse failed: Unexpected token (1:0)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n> <div class=\"sc-cohort-calendar\">\n|   <div class=\"margin--bottom\">\n| \nat webpack:///./src/directives/scheduling-calendar/scheduling-calendar.component.html?:1:1\n\nError: Module parse failed: Unexpected token (1:0)\nYou may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders\n> <div class=\"sc-cohort-calendar\">\n|   <div class=\"margin--bottom\">\n| \n    at eval (webpack:///./src/directives/scheduling-calendar/scheduling-calendar.component.html?:1:7)\n    at Object../src/directives/scheduling-calendar/scheduling-calendar.component.html (src/directives/index.js:108:1)\n    at __webpack_require__ (src/directives/index.js:20:30)\n    at eval (webpack:///./src/directives/scheduling-calendar/scheduling-calendar.component.js?:3:93)\n    at Module../src/directives/scheduling-calendar/scheduling-calendar.component.js (src/directives/index.js:120:1)\n    at __webpack_require__ (src/directives/index.js:20:30)\n    at eval (webpack:///./src/directives/index.js?:2:111)\n    at Module../src/directives/index.js (src/directives/index.js:97:1)\n    at __webpack_require__ (src/directives/index.js:20:30)\n    at src/directives/index.js:84:18"
  }

Is there anyway to remedy this??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant